append
at
at: (index: number) => T | null compareValue
compareValue: (a: string, b: string) => -1 | 0 | 1
copy
filter
filter: ( fn: (itemString: string, index: number, item: T) => boolean,) => ListCollection<T> find
find: (value: string | null | undefined) => T | null findMany
findMany: (values: string[]) => T[] getItemDisabled
getItemDisabled: (item: T | null) => boolean getItemValue
getItemValue: (item: T | null | undefined) => string | null getNextValue
getNextValue: (value: string, step?: number, clamp?: boolean) => string | null
getPreviousValue
getPreviousValue: (
value: string,
step?: number,
clamp?: boolean,
) => string | null
getValueRange
getValueRange: (from: string | null, to: string | null) => string[]
getValues
getValues: (items?: T[]) => string[] group
group: () => [string, T[]][] has
has: (value: string | null) => boolean
hasItem
hasItem: (item: T | null) => boolean indexOf
indexOf: (value: string | null) => number
insert
insertAfter
insertBefore
isEqual
items
move
moveAfter
moveBefore
prepend
remove
reorder
search
search: (queryString: string, options: CollectionSearchOptions) => string | null
setItems
sort
sort: (values: string[]) => string[]
stringify
stringify: (value: string | null) => string | null
stringifyItem
stringifyItem: (item: T | null) => string | null stringifyItems
stringifyItems: (items: T[], separator?: string) => string stringifyMany
stringifyMany: (value: string[], separator?: string) => string
toJSON
toJSON: () => { first: string | null; last: string | null; size: number }
toString
toString: () => string
update
upsert
upsert: ( value: string, item: T, mode?: "append" | "prepend",) => ListCollection<T>
Append items to the collection