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