Sha256: 6a01af80856f87ce1f97f7e08a68c623765151243899c092b1660f073f303ab5

Contents?: true

Size: 470 Bytes

Versions: 99

Compression:

Stored size: 470 Bytes

Contents

/**
 * isArray
 */

var isArray = Array.isArray;

/**
 * toString
 */

var str = Object.prototype.toString;

/**
 * Whether or not the given `val`
 * is an array.
 *
 * example:
 *
 *        isArray([]);
 *        // > true
 *        isArray(arguments);
 *        // > false
 *        isArray('');
 *        // > false
 *
 * @param {mixed} val
 * @return {bool}
 */

module.exports = isArray || function (val) {
  return !! val && '[object Array]' == str.call(val);
};

Version data entries

99 entries across 99 versions & 4 rubygems

Version Path
sequenceserver-2.0.0 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.rc8 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.rc7 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.rc6 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.rc5 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.rc4 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.rc3 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.rc2 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.rc1 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.beta4 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.beta3 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-2.0.0.beta1 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-1.1.0.beta12 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-1.1.0.beta11 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-1.1.0.beta10 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-1.1.0.beta8 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-1.1.0.beta7 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-1.1.0.beta6 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-1.1.0.beta5 public/vendor/npm/is-array@1.0.1/index.js
sequenceserver-1.1.0.beta4 public/vendor/npm/is-array@1.0.1/index.js