2014-10-13 03:29:50 +11:00

9 lines
145 B
JavaScript

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