The current element being processed in the array.
The index of the current element being processed in the array.
The array ArrayPredicate
was called upon.
A boolean indicating whether the current element passes the test.
This type is useful when you want to create a function that can be used with methods like Array.prototype.filter
.
T - The type of elements in the array.
Generated using TypeDoc
Type definition for a predicate function that operates on arrays.