Avatar ·

What are the differences between Lodash and Underscore.js and which one to choose?

Hello everyone! I'm a beginner in JavaScript and started learning utility libraries for working with data. I often see that projects use either Lodash or Underscore.js. They look very similar: both provide functions like `_.map`, `_.filter`, `_.reduce`, `_.cloneDeep` and so on. I tried both on a simple example: ```javascript // Underscore const data = [{id: 1, name: 'Alice'}, {id: 2, name: 'Bob'}]; const result = _.findWhere(data, {name: 'Alice'}); // Lodash const result2 = _.find(data, {name: 'Alice'}); ``` It seems almost the same. But I've heard that Lodash is "faster" and "more modern", while Underscore is a "classic". I don't understand: 1. What are the specific differences in the API? Are there functions that exist only in one of the libraries? 2. Is it true that Lodash works bet