The opposite of filter. It returns a list with the elements that satisfy the condition removed.
filter
import * as A from "flurp/array";import * as N from "flurp/number";const tossOutNegative = A.reject(N.isNegative);tossOutNegative([0, 2, -4, 6, 8]); // [0, 2, 6, 8]
The opposite of
filter
. It returns a list with the elements that satisfy the condition removed.Example