Class Collection<T>Abstract
Methods
Abstract
delete
- delete(id): void
-
Returns void
Abstract
entries
- entries(): IterableIterator<[string, T]>
-
Returns IterableIterator<[string, T]>
Iterable
filter
- filter(predicate): T[]
-
Parameters
-
predicate: ((value, key) => boolean)
-
- (value, key): boolean
-
Returns boolean
Returns T[]
find
- find(predicate): undefined | T
-
Parameters
-
predicate: ((value, key) => boolean)
-
- (value, key): boolean
-
Returns boolean
Returns undefined | T
Abstract
forEach
- forEach(cb): void
-
Parameters
-
cb: ((value, key, map) => void)
-
- (value, key, map): void
-
Parameters
-
value: T
-
key: string
-
map: ReactiveMap<string, T>
Returns void
Returns void
Abstract
get
- get(id): undefined | T
-
Returns undefined | T
Object
Abstract
has
- has(id): boolean
-
Returns boolean
Whether it exists
Abstract
keys
- keys(): IterableIterator<string>
-
Returns IterableIterator<string>
Iterable
map
- map<O>(cb): O[]
-
Parameters
-
cb: ((value, key) => O)
-
- (value, key): O
-
Returns O
Returns O[]
Abstract
size
- size(): number
-
Returns number
Size
toList
- toList(): T[]
-
Returns T[]
List
Abstract
values
- values(): IterableIterator<T>
-
Returns IterableIterator<T>
Iterable
Abstract Collection type