Newer
Older
alert / js / node_modules / util / support / isBufferBrowser.js
@Réz István Réz István on 18 Nov 2021 203 bytes first commit
module.exports = function isBuffer(arg) {
  return arg && typeof arg === 'object'
    && typeof arg.copy === 'function'
    && typeof arg.fill === 'function'
    && typeof arg.readUInt8 === 'function';
}