Printing done

This commit is contained in:
CAnetzberger
2022-01-31 15:24:52 +01:00
parent 884cca1159
commit 14a8467d33
34 changed files with 2215 additions and 509 deletions
+3
View File
@@ -0,0 +1,3 @@
module.exports = function isBuffer(arg) {
return arg instanceof Buffer;
}
+6
View File
@@ -0,0 +1,6 @@
module.exports = function isBuffer(arg) {
return arg && typeof arg === 'object'
&& typeof arg.copy === 'function'
&& typeof arg.fill === 'function'
&& typeof arg.readUInt8 === 'function';
}