Say I have an object:
elmo = { color: \'red\', annoying: true, height: \'unknown\', meta: { one: \'1\', two: \'2\'} };
I want to m
This works for me in Chrome console. Any problem with this?
var { color, height } = elmo var subelmo = { color, height } console.log(subelmo) // {color: "red", height: "unknown"}