2018-01-09 15:36:42 +01:00

6 lines
81 B
JavaScript

var foo = arr.map(v => ({
x: v.bar,
y: v.bar*2
}));
var fn = () => ({}).key;