UNPKG

indexed-collection

Version:

A zero-dependency library of classes that make filtering, sorting and observing changes to arrays easier and more efficient.

10 lines (6 loc) 260 B
import { IReadonlyCollection } from './IReadonlyCollection'; export interface IMutableCollection<T> extends IReadonlyCollection<T> { add(item: T): boolean; addRange(items: readonly T[] | IReadonlyCollection<T>): boolean[]; remove(item: T): boolean; }