UNPKG

indexed-collection

Version:

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

14 lines (12 loc) 412 B
export const CollectionNature = { /** * The items in the collection should always be unique, and order does not matter * This option is always performant */ Set: 'set', /** * The items in the collection should always preserve the order it is entered in the collection */ Array: 'array', } as const; export type CollectionNature = (typeof CollectionNature)[keyof typeof CollectionNature];