vanilla-type-check
Version:
14 lines (13 loc) • 341 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var toString = {}.toString;
/**
* Check if a value is an array
*
* @param value value to check
* @returns `true` if `obj` is an array
*/
function isArray(value) {
return toString.call(value) === '[object Array]';
}
exports.isArray = isArray;