UNPKG

@datorama/akita

Version:

A Reactive State Management Tailored-Made for JS Applications

13 lines (12 loc) 333 B
import { IDS, ItemPredicate } from './types'; /** * Remove item from collection * * @example * * * store.update(state => ({ * names: arrayRemove(state.names, ['one', 'second']) * })) */ export declare function arrayRemove<T extends any[], Entity = any>(arr: T, identifier: IDS | ItemPredicate<Entity>, idKey?: string): T;