Questions tagged [lodash.js]
A JavaScript utility library delivering consistency, modularity, performance, & extras.
55 questions
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
...
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'
...
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?
...
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 ...
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:
...
4
votes
2
answers
115
views
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.
...
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 ...
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 —...
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?
...
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 ...
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 ...
3
votes
2
answers
127
views
Mean by properties in array of objects
I have this array of objects:
...
1
vote
2
answers
83
views
Checking if any competitors have a non-empty name [closed]
Take this:
...
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:
...