Skip to main content

Questions tagged [lodash.js]

A JavaScript utility library delivering consistency, modularity, performance, & extras.

1 vote
3 answers
80 views

Javascript: Reducing redundancy of notation nested value

Hello I have this function that looks for nested value 3 levels deep currently ...
Mateen Kazia's user avatar
0 votes
1 answer
662 views

React debounce using Lodash

I need people who have experience with React to review my code. I want to make a debounce using Lodash. import debounce from 'lodash/debounce' ...
kusiaga's user avatar
  • 121
0 votes
1 answer
379 views

Find number of times a property has a truthy value in a nested object

I have a nested object and I would like to calculate the number of times the property 'error'. I am able to go n levels deep and find the count. Is there a better solution than mine? ...
arunmmanoharan's user avatar
1 vote
1 answer
3k views

Compare two arrays of objects and get the objects based on ids

I have two arrays of objects. One has an id property with a list of ids and the second has an object with a unique id property. I want to filter the ids in the second array with the first list and get ...
arunmmanoharan's user avatar
0 votes
1 answer
341 views

Efficiently performing multiple nested grouping and mapping in Javascript

I have an array of log objects with log_types and dates, like this: ...
DasBeasto's user avatar
  • 155
4 votes
2 answers
115 views

Filter one array based on values of another, is this the best way?

...
Dupdroid's user avatar
5 votes
2 answers
2k views

Transform an object into another object structure

I've got such an input object, which I should modify in order to use it with some charts library. ...
Dan Cantir's user avatar
6 votes
1 answer
208 views

Recursive component JSON configuration builder

My goal here is to make data driven nested forms in React. I've created a function that points to a form configuration JSON, which can contain both components and references to other configuration ...
Johan's user avatar
  • 631
2 votes
0 answers
115 views

Property typed lodash compose function

Here I created a typed version of lodash flow that offers more specific typing. I'm curious if this exists in any other library, which optimized in tying any way —...
ThomasReggi's user avatar
1 vote
1 answer
516 views

Get an object with null values from an array of nested objects

I have an array of nested objects. How do I get an object with null values using only a particular key in the array of objects? ...
arunmmanoharan's user avatar
4 votes
1 answer
85 views

Finding optimal mapping patterns that transform relational data into a linear format

I'm trying to upgrade my javascript to be more functional. I have used function composition and curry successful on less complicated code but i'm now running into a point where i'm not sure on how to ...
ngr's user avatar
  • 115
3 votes
3 answers
76 views

Counting duration values

I have a durations as such: [{'duration': 3600}, {'duration': 3600}] And I want the output to be ...
XoXo's user avatar
  • 185
3 votes
2 answers
127 views

Mean by properties in array of objects

I have this array of objects: ...
Katherine Maurus's user avatar
1 vote
2 answers
83 views

Checking if any competitors have a non-empty name [closed]

Take this: ...
Luca Reghellin's user avatar
3 votes
1 answer
419 views

Transforming data from an API using Typescript and Lodash

As a front-end developer, I am given the following result from an API, an array of objects that looks like: ...
149203's user avatar
  • 33

15 30 50 per page