Sha256: ab2a4432d23cd01179105385539916401386426c9589e70a178acdde4f1744ce
Contents?: true
Size: 436 Bytes
Versions: 12
Compression:
Stored size: 436 Bytes
Contents
/** * Determine if an object is Buffer * * Author: Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * License: MIT * * `npm install is-buffer` */ module.exports = function (obj) { return !!(obj != null && (obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor) (obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)) )) }
Version data entries
12 entries across 12 versions & 4 rubygems