Say I have an object:
elmo = { color: \'red\', annoying: true, height: \'unknown\', meta: { one: \'1\', two: \'2\'} };
I want to m
Just another way...
var elmo = { color: 'red', annoying: true, height: 'unknown', meta: { one: '1', two: '2'} } var subset = [elmo].map(x => ({ color: x.color, height: x.height }))[0]
You can use this function with an array of Objects =)