filter()
Returns an array of objects for which the provided callback function returns true.
filter(callback: (item: T) => boolean | undefined): T[];
Notes
- If the list is unlinked, this method returns an empty array.
- The behavior of this method is undefined if the callback modifies the list.
Related
class ObservableList
A data structure that contains an ordered set of observable objects.
