3 ms·
There are 2 big categories for lodash functions: 1. Functions that have equivalently terse native versions (fill, map, etc) 2. Function that have multi-line e
by joshstrange 4y ago
There are 2 big categories for lodash functions:
1. Functions that have equivalently terse native versions (fill, map, etc)
2. Function that have multi-line equivalents (chunk, zip, etc)
Yes you can _.map an object and you can't myObject.map but I prefer Object.[keys/values](myObject).map(...) but for something like _.chunk I absolutely prefer to use lodash. Maybe one day we will see a new major version of lodash that deprecates all the near-native versions of functions so you can still use them but your editors will do a strikethrough and the JSDoc for the function can steer you to the native version but there are still a lot of useful lodash functions.