agsamantha/node_modules/langsmith/dist/utils/lodash/isIndex.d.ts
2024-10-02 15:15:21 -05:00

10 lines
357 B
TypeScript

/**
* 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: any): boolean;
export default isIndex;