Methods
(inner) findObjectByKeyVal(obj, key, value)
A recursive function that finds all the corresponding key value pairs and returns to object having the key-value pair
Parameters:
Name | Type | Description |
---|---|---|
obj |
obj | a Javascript object |
key |
key | requested key |
value |
val | requested value |
Returns:
found object with the requested key value pair