Sha256: d0dc741d4fdc90431298d7edc788426dd34ad4131e09c24973eb5c3b1df0f5bb

Contents?: true

Size: 252 Bytes

Versions: 181

Compression:

Stored size: 252 Bytes

Contents

module.exports = isBuf;

/**
 * Returns true if obj is a buffer or an arraybuffer.
 *
 * @api private
 */

function isBuf(obj) {
  return (global.Buffer && global.Buffer.isBuffer(obj)) ||
         (global.ArrayBuffer && obj instanceof ArrayBuffer);
}

Version data entries

181 entries across 89 versions & 3 rubygems

Version Path
blackboard-3.1.9 lib/site_template/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
blackboard-3.1.9 lib/site_template/node_modules/socket.io-parser/is-buffer.js
flok-0.0.105 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.105 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.103 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.103 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.102 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.102 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.5 template/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.5 template/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.5 template/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.4 template/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.4 template/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.4 template/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.3 template/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.3 template/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
gulp_assets-1.0.0.pre.3 template/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.101 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.101 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.100 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js