Documentation

filter()

Returns an array of objects for which the provided callback function returns true.

filter(callback: (item: T) => boolean | undefined): T[];

Notes

Related