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 337 B
/** * @public * Replaces the first match of itemToRemove with replaceWith. * * @returns true if an element was replaced. * * @remarks * See {@link arrayReplaceOne}. */ export declare function arrayReplaceOne<TItem>(items: TItem[], itemToRemove: TItem, replaceWith: TItem): boolean; //# sourceMappingURL=array-replace-one.d.ts.map