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.70 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.69 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.69 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.68 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.68 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.67 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.67 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.66 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.66 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.65 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.65 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.64 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.64 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.63 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.63 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.62 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.62 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.61 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js
flok-0.0.61 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js
flok-0.0.60 spec/iface/driver/assets/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js