James DiGioia 7142a79eb9 Bring pipelineOperator flag in line with minimal
The minimal proposal requires parentheses around arrow functions
and bans await from the pipeline.
2018-04-27 23:15:21 +02:00

16 lines
352 B
JavaScript

var _sum, _ref, _ref2;
var result = (_sum = (_ref = (_ref2 = [5, 10], _ref2.map(x => x * 2)), _ref.reduce((a, b) => a + b)), _sum + 1);
expect(result).toBe(31);
var inc = x => x + 1;
var double = x => x * 2;
var result2 = [4, 9].map(x => {
var _ref3, _x;
return _ref3 = (_x = x, inc(_x)), double(_ref3);
});
expect(result2).toEqual([10, 20]);