feat: add new nodejs modules

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-03-31 14:51:44 +08:00
parent 9dd7abe6fd
commit f4e9b2627d
11 changed files with 2784 additions and 51 deletions

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';
}