135
rated 0 times
[
139]
[
4]
/ answers: 1 / hits: 90439
/ 9 Years ago, tue, april 14, 2015, 12:00:00
For example if I have two objects:
var foo = {
x: bar,
y: baz
}
and
var oof = {}
and I wanted to transfer the x and y values from foo to oof. Is there a way to do that using the es6 destructuring syntax?
perhaps something like:
oof{x,y} = foo
More From » ecmascript-6