@newdash/newdash
Version:
javascript/typescript utility library
11 lines (10 loc) • 361 B
TypeScript
export default isIndex;
/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
declare function isIndex(value: any, length?: number): boolean;