You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
284 B
13 lines
284 B
2 years ago
|
var isFn = require('./isFn');
|
||
|
exports = function(val) {
|
||
|
if (val == null) return false;
|
||
|
if (val._isBuffer) return true;
|
||
|
return (
|
||
|
val.constructor &&
|
||
|
isFn(val.constructor.isBuffer) &&
|
||
|
val.constructor.isBuffer(val)
|
||
|
);
|
||
|
};
|
||
|
|
||
|
module.exports = exports;
|