UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

17 lines 618 B
/** * @public * Like {@link arrayMap} with integer range as input. * * @param from - The value to start from (inclusive). * @param to - The value to finish with (inclusive). * @param callback - Called for each value in the range. * * @returns An array of results from the callback. * * @remarks * Where `from` and `to` are equal a length 1 array is returned, NaN input is not supported. * * See {@link arrayMapRange}. */ export declare function arrayMapRange<TMapped>(from: number, to: number, callback: (value: number, index: number) => TMapped): TMapped[]; //# sourceMappingURL=array-map-range.d.ts.map