@newdash/newdash
Version:
javascript/typescript utility library
32 lines (31 loc) • 626 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isArray = void 0;
/**
* Checks if `value` is classified as an `Array` object.
*
* @since 5.5.0
* @category Lang
* @param value The value to check.
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
* @example
*
* ```js
* isArray([1, 2, 3]);
* // => true
*
* isArray(document.body.children);
* // => false
*
* isArray('abc');
* // => false
*
* isArray(noop);
* // => false
* ```
*/
function isArray(value) {
return Array.isArray(value);
}
exports.isArray = isArray;
exports.default = isArray;