Top "Lodash" questions

A modern JavaScript utility library delivering modularity, performance, and extras.

Can't perform a React state update on an unmounted component

Problem I am writing an application in React and was unable to avoid a super common pitfall, which is calling …

javascript reactjs typescript lodash setstate
Lodash .clone and .cloneDeep behaviors

I try to clone an array of objects with nested objects. Something like: var data = [ { id: 1, values: { a: 'a', b: …

javascript jquery backbone.js underscore.js lodash
lodash multi-column sortBy descending

There's a nifty method to sort an array of objects based on several properties: var data = _.sortBy(array_of_objects, […

javascript sorting lodash
Loop through properties in JavaScript object with Lodash

Is it possible to loop through the properties in a JavaScript object? For instance, I have a JavaScript object defined …

javascript lodash
is there a function in lodash to replace matched item

I wonder if there is a simpler method in lodash to replace an item in a JavaScript collection? (Possible duplicate …

javascript lodash
Filtering array of objects with lodash based on property value

We have an array of objects as such var myArr = [ {name: "john", age: 23}, {name: "john", age: 43}, {name: "jim", age: 101}, {name: "…

javascript filter filtering lodash
How to merge two arrays of objects by ID using lodash?

I have two array with one common field member. how can I merge theme easily? For example: var arr1 = [{ "member" : …

javascript lodash
Removing object properties with Lodash

I have to remove unwanted object properties that do not match my model. How can I achieve it with Lodash? …

lodash
Map over object preserving keys

The map function in underscore.js, if called with a javascript object, returns an array of values mapped from the …

javascript underscore.js lodash
What happened to Lodash _.pluck?

I once used Lodash _.pluck...I loved pluck... Realizing Lodash no longer supports pluck (as of Lodash 4.x), I'm struggling …

javascript lodash