Say I have an object:
elmo = { color: \'red\', annoying: true, height: \'unknown\', meta: { one: \'1\', two: \'2\'} };
I want to m
function splice() { var ret = new Object(); for(i = 1; i < arguments.length; i++) ret[arguments[i]] = arguments[0][arguments[i]]; return ret; } var answer = splice(elmo, "color", "height");