Removes the first element from an Array that matches a Predicate.
Square the first element equal to 2
2
const array = [1, 2, 3, 4];findAndDelete(isEven)(array);console.log(array); // [1, 3]
the Array element type
the Predicate to match
Optional
Generated using TypeDoc
Removes the first element from an Array that matches a Predicate.
Mutation
Example
Square the first element equal to
2