Created
November 8, 2015 17:24
-
-
Save domitry/d50377f8aca314af2809 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
var obj={a: 2, b: 3}; | |
function get(key){ | |
if(Array.isArray(key))return key.map(get); | |
return obj[key]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment