code: function isBuf(obj) {
    return (
      (withNativeBuffer && commonjsGlobal.Buffer.isBuffer(obj)) ||
      (withNativeArrayBuffer && (obj instanceof commonjsGlobal.ArrayBuffer || isView(obj)))
    );
  }
docs: Returns true if obj is a buffer or an arraybuffer.
  
  @api private