_.filter(array, (value, index, iteratee) => { return _.find(iteratee, value, index + 1) }) code example
Example: underscore js join
_.reduce(['x', 'y', 'z'], function(accumulator, currentItem) {
return accumulator + currentItem;
});
// xyz
_.reduce(['x', 'y', 'z'], function(accumulator, currentItem) {
return accumulator + currentItem;
});
// xyz