If Object.pick
takes only own properties, then pick & remove might also be useful:
b = Object.pluck(a, 'x', 'y');
roughly equiv to:
b = Object.pick(a, 'x', 'y');
delete a['x'];
delete a['y'];
If Object.pick
takes only own properties, then pick & remove might also be useful:
b = Object.pluck(a, 'x', 'y');
roughly equiv to:
b = Object.pick(a, 'x', 'y');
delete a['x'];
delete a['y'];