- filter<T, Context>(arr, cb, context?): T[]
Parameters
arr: readonly T[]
cb: ((this, value, index, arr) => boolean)
- (this, value, index, arr): boolean
Parameters
value: T
index: number
arr: readonly T[]
Returns boolean
Optional
context: Context
Returns T[]
Must be an array.
Array filtering.