UNPKG

xdesign-vue-next

Version:

XDesign Component for vue-next

47 lines (42 loc) 1.11 kB
/** * xdesign v1.0.6 * (c) 2023 xdesign * @license MIT */ import './dep-10a947a6.mjs'; import { i as isFunction_1 } from './dep-1cc1c24f.mjs'; import './dep-5755c21c.mjs'; import { i as isLength_1 } from './dep-e1ab85c5.mjs'; var isFunction = isFunction_1, isLength = isLength_1; /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } var isArrayLike_1 = isArrayLike; export { isArrayLike_1 as i }; //# sourceMappingURL=dep-0e832fc7.mjs.map