UNPKG

@prelude/array

Version:

Array module.

7 lines (6 loc) 211 B
/** * Like `at` but wraps using modulo on length. * @throws {TypeError} if array is empty or index is not a safe integer. */ declare const modulo: <T>(values: T[], index: number) => T; export default modulo;