isIndex.d.ts 357 B

12345678910
  1. /**
  2. * Checks if `value` is a valid array-like index.
  3. *
  4. * @private
  5. * @param {*} value The value to check.
  6. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  7. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  8. */
  9. declare function isIndex(value: any, length: any): boolean;
  10. export default isIndex;