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
smock-0.1.225 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.224 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.9 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.223 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.222 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.221 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.220 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.219 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.218 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.217 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.216 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.215 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.214 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.213 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.212 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.211 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.210 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.209 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js
smock-0.1.208 node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer/node_modules/is-array/index.js