Recently, I made the decision to cut down on my use of underscore/lodash in some of my projects and found that browser support for the full functionality of the find method is lacking. What sets the ES6 method find apart from using .shift() with filter results?
const user = users.find(function() { ... } );
or
const user = users.filter(function() { ... } ).shift();
I understand that there might be optimizations in the "find" method (stopping iteration at first match), but could I encounter unexpected results with the second approach? Is it advisable to use the polyfill instead? Why?