UNPKG

lodash-es

Version:

The modern build of lodash exported as ES modules.

16 lines (13 loc) 364 B
import getLength from './getLength'; import isLength from './isLength'; /** * Checks if `value` is array-like. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. */ function isArrayLike(value) { return value != null && isLength(getLength(value)); } export default isArrayLike;