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.

11 lines 369 B
/** * @public * Populates a `Map` given a key creating function and `ArrayLike`. * * @remarks * keys which are null are omitted. * * See {@link arrayIndex}. */ export declare function arrayIndex<TKey, TItem>(items: ArrayLike<TItem>, getKey: (item: TItem, index: number) => TKey | null): Map<Exclude<TKey, null>, TItem>; //# sourceMappingURL=array-index.d.ts.map