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.
10 lines • 352 B
TypeScript
/**
* @public
* Like `Array.map`.
* @remarks
* Has more consistent performance characteristics cross platform than the built in `Array.map`
*
* See {@link arrayMap}.
*/
export declare function arrayMap<TItem, TMapped>(items: ArrayLike<TItem>, callback: (item: TItem, index: number) => TMapped): TMapped[];
//# sourceMappingURL=array-map.d.ts.map