Created
August 28, 2014 13:42
-
-
Save dscape/b31d0a28446b645e1b49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo(obj) { | |
var keys = []; | |
keys.push(object.name + '@' + obj.version); | |
for (var key in obj) { | |
if (key === 'dependencies' && typeof obj[key] === 'object') | |
keys.push(foo(obj[key])); | |
} | |
} | |
return keys; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment