Files
babel/test/fixtures/syntax/array-comprehension/this/expected.js

9 lines
146 B
JavaScript

function add() {
var _this = this;
return [1, 2, 3].map(function (i) {
return i * _this.multiplier;
});
}
add.call({ multiplier: 5 });