/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */// The _isBuffer check is for Safari 5-7 support, because it's missing// Object.prototype.constructor. Remove this eventuallymodule.exports=function(obj){returnobj!=null&&(isBuffer(obj)||isSlowBuffer(obj)||!!obj._isBuffer)}functionisBuffer(obj){return!!obj.constructor&&typeofobj.constructor.isBuffer==='function'&&obj.constructor.isBuffer(obj)}// For Node v0.10 support. Remove this eventually.functionisSlowBuffer(obj){returntypeofobj.readFloatLE==='function'&&typeofobj.slice==='function'&&isBuffer(obj.slice(0,0))}