'best way to find object
I need to find object by property children_inherit where value is true and return this object. what is the best way to do this, maybe it possible to do this with lodash library or better with clean js?
please check object below...
{
"file": [
{
"children_inherit": false,
"value": "123123"
},
{
"children_inherit": false,
"value": "asdad"
}
],
"sample": [
{
"children_inherit": true,
"value": "1231"
}
],
"treatment": [
{
"children_inherit": false,
"value": "asdasd"
}
]
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
