You don't need Lodash or How I started loving JavaScript functions

added by JavaScript Kicks
4/5/2019 8:27:03 AM

990 Views

1. find The first function we will illustrate is the one that we use often. Let's try to find the first element in a collection that satisfies a condition So, this is a very simple example and let's investigate the performance of both these functions: You can inspect the benchmark code and play with variations using the playground below: This is not to conclude that native functions are always performant over their Lodash counterparts.


0 comments