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
flok-0.0.100 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.99 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.99 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.98 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.98 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.97 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.97 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.96 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.96 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.95 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.95 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.94 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.94 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.93 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.93 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.92 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.92 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.91 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.91 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.90 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js