-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi, it's a very interesting project!
I was curious how deepdash is used here and I suggest to use findValueDeep method here
instead of eachDeep, because findDeep will stop on first found value, while eachDeep will not (until you will ask it)
new code(not tested) may look like
// get the data for the id in the route param if there is one
export const getItemWithId = (data, id) => findValueDeep(data, { id });note that lodash's iteratee is supported so you can also make a code a bit shorter.
Metadata
Metadata
Assignees
Labels
No labels