Find the path to a specific value based on a callback function.

This function is valid in v2.17.0 to v2.24.0. This function has been downloaded 23 times.


{*} base
The object in which you want to start looking to see if it a match according to callback.
{Function} callback
The function that will be called for each value starting with base and traversing all of its descendants. The arguments passed will be (1) the value be inspected, (2) the path as an array to that value and (3) a reference to base. If this function returns a true-ish value then execution will stop and the path to this value will be returned.
{number=} opt_maxTimeMs Optional, Default:3000
The maximum amount of time to check before simply returning undefined.


If the desired value is found an array with the path to said base. If the desired value is not found in the allotted time undefined is returned. In all other cases false is returned.