* add isSpread field * use argument * t.booleanLiteral * fix typo * push empty-argument object * .object * .value * object field should be an expression * lint * update outputs * isSpread for the second argument is redundant * add test * alternating spread
10 lines
169 B
JavaScript
10 lines
169 B
JavaScript
({ x, ...y, a, ...b, c });
|
|
|
|
({ ...Object.prototype });
|
|
|
|
({ ...{ foo: 'bar' } });
|
|
|
|
({ ...{ foo: 'bar' }, ...{ bar: 'baz' } });
|
|
|
|
({ ...{ get foo () { return 'foo' } } });
|