Removes elements from array where iteratee returns falsy.
Input array
Function to determine removal
Filtered array
compactBy([{x:1},{x:0},{x:2}], o => o.x); // [{x:1},{x:2}] Copy
compactBy([{x:1},{x:0},{x:2}], o => o.x); // [{x:1},{x:2}]
1.2.0
Removes elements from array where iteratee returns falsy.