l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

isBufferBrowser.js (203B)


      1 module.exports = function isBuffer(arg) {
      2   return arg && typeof arg === 'object'
      3     && typeof arg.copy === 'function'
      4     && typeof arg.fill === 'function'
      5     && typeof arg.readUInt8 === 'function';
      6 }