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