Array.p.select/reject
for Stage 1
Array.p.filter is terribly named*
It does the wrong thing.
*Personal opinions are my own
“Filtering”
“to remove by means of a filter”, from an actual dictionary
What does filter do to the current item?
Meaning what does filter do when the predicate returns true:
What does filter do to the current item?
Meaning what does filter do when the predicate returns true:
What does filter do to the current item?
Meaning what does filter do when the predicate returns true:
Array.p.filter confuses me
every time
Array.p.select
Array.p.reject
Why “select” and “reject”?
They make sense.
Precedence from Underscore/Lodash
We even knew it when writing Array.p.filter’s spec text, 7.c.ii and 7.c.iii
We even knew it when writing Array.p.filter’s spec text, 7.c.ii and 7.c.iii
It just makes sense.
As an alternative...