2019-02-04 21:58:46 +01:00

6 lines
98 B
JavaScript

function* myGenerator(n) {
var _ref, _n;
return _ref = (_n = n, yield _n), Math.abs(_ref);
}