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.80 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.79 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.79 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.78 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.78 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.77 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.77 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.76 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.76 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.75 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.75 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.74 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.74 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.73 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.73 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.72 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.72 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.71 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.71 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.70 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js