Sha256: ab2a4432d23cd01179105385539916401386426c9589e70a178acdde4f1744ce

Contents?: true

Size: 436 Bytes

Versions: 12

Compression:

Stored size: 436 Bytes

Contents

/**
 * Determine if an object is Buffer
 *
 * Author:   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * License:  MIT
 *
 * `npm install is-buffer`
 */

module.exports = function (obj) {
  return !!(obj != null &&
    (obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor)
      (obj.constructor &&
      typeof obj.constructor.isBuffer === 'function' &&
      obj.constructor.isBuffer(obj))
    ))
}

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/is-buffer/index.js
brwy_rails-0.0.6 test/dummy/node_modules/is-buffer/index.js
brwy_rails-0.0.5 test/dummy/node_modules/is-buffer/index.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/is-buffer/index.js
blackboard-3.1.9 lib/site_template/node_modules/is-buffer/index.js
brwy_rails-0.0.4 test/dummy/node_modules/is-buffer/index.js
brwy_rails-0.0.3 test/dummy/node_modules/is-buffer/index.js
brwy_rails-0.0.2 test/dummy/node_modules/is-buffer/index.js
brwy_rails-0.0.1 test/dummy/node_modules/is-buffer/index.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/is-buffer/index.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/is-buffer/index.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/is-buffer/index.js