Top "Lodash" questions

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

transform object to array with lodash

How can I transform a big object to array with lodash? var obj = { 22: {name:"John", id:22, friends:[5,31,55], works:{books:[], films:[],} 12: {…

javascript arrays object lodash
Javascript ES6/ES5 find in array and change

I have an array of objects. I want to find by some field, and then to change it: var item = {...} …

javascript arrays ecmascript-6 lodash
Importing lodash into angular2 + typescript application

I am having a hard time trying to get the lodash modules imported. I've setup my project using npm+gulp, …

javascript angular typescript lodash es6-module-loader
How to filter keys of an object with lodash?

I have an object with some keys, and I want to only keep some of the keys with their value? …

javascript filter lodash
How to remove undefined and null values from an object using lodash?

I have a Javascript object like: var my_object = { a:undefined, b:2, c:4, d:undefined }; How to remove all the …

javascript object lodash
using lodash .groupBy. how to add your own keys for grouped output?

I have this sample data returned from an API. I'm using Lodash's _.groupBy to convert the data into an object …

javascript sorting underscore.js grouping lodash
LoDash: Get an array of values from an array of object properties

I'm sure it's somewhere inside the LoDash docs, but I can't seem to find the right combination. var users = [{ id: 12, …

javascript lodash
use Lodash to sort array of object by value

I am trying to sort an array by 'name' value (using Lodash). I used the Lodash docs to create the …

arrays lodash
Using lodash to compare arrays (items existence without order)

I know I can do it using loops, but I'm trying to find an elegant way of doing this: I …

javascript arrays lodash
Correct way to import lodash

I had a pull request feedback below, just wondering which way is the correct way to import lodash? You'd better …

javascript lodash babeljs