Closed maluramichael closed 7 years ago
Sounds good! I'm just on vacation now, but I can do this when I get back.
I don't always take a vacation, but when I do, it's 5 months long.
RS.rejectByProp('id', 'a', [{id: 'a'}, {id: 'b'}])
// vs.
R.reject(R.propEq('id, 'a'), [{id: 'a'}, {id: 'b'}])
There's not a whole lot of savings here, so I think I'm going to skip on this one.
When I look back at some of functions that we have already, I do kinda question some of them. Like our findByProp
and eqLength
.
So I'm trying to stay away from the ones that are just predicate wrappers.
100% appreciate you taking the time to file this issue though.
Would be nice to have a function which rejects everything that matches the prop.