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.
9 lines • 365 B
TypeScript
/**
* @public
* Like _Array.map but where the callback returns null it will be omitted from the result.
*
* @remarks
* See {@link arrayCompactMap}.
*/
export declare function arrayCompactMap<TItem, TTransformed>(items: ArrayLike<TItem>, map: (item: TItem, index: number) => TTransformed | null): TTransformed[];
//# sourceMappingURL=array-compact-map.d.ts.map