@arrows/array
Version:
Functional tools for JS arrays
13 lines (12 loc) • 372 B
TypeScript
declare type _Get_ = <T>(index: number, arr: T[]) => T | undefined;
declare type _Get2_ = <T>(index: number) => (arr: T[]) => T | undefined;
declare type Get_ = _Get_ & _Get2_;
/**
* Retrieves an element at the specific index.
*
* @param index Specific index
* @returns Element at the specific index
*/
declare const get_: Get_;
export { get_ };
export default get_;