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.

10 lines 433 B
/** * @public * Replaces length 0 `ArrayLike` with `undefined`. * @returns `array` if it's an `ArrayLike` of length greater than 0, otherwise `undefined`. * * @remarks * See {@link arrayNormalizeEmptyToUndefined}. */ export declare function arrayNormalizeEmptyToUndefined<TArray extends ArrayLike<unknown>>(array: TArray | null | undefined): TArray | undefined; //# sourceMappingURL=array-normalize-empty-to-undefined.d.ts.map