0.0.4 • Published 12 years ago
search-objkeys v0.0.4
-- coding: utf-8, tab-width: 2 --
searchObjKeys
function searchObjKeys(obj, keyWant, maxDepth)obj: The object in which to search for keyskeyWant: The name (string) or pattern (regexp) to find in key names.maxDepth: (optional) If a number, limit on how deep to dive. You can usetrueas a shorthand forNumber.POSITIVE_INFINITY. If neither a number nortrue,defaultMaxDepthis used.