Skip to content

Instantly share code, notes, and snippets.

@domitry

domitry/test.js

Created Nov 8, 2015
Embed
What would you like to do?
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