Module: findObjectByKeyVal

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

Source:
Returns:

found object with the requested key value pair