10 lines
220 B
TypeScript
10 lines
220 B
TypeScript
//// [thisExpressionInIndexExpression.ts]
|
|
function f() {
|
|
return r => r[this];
|
|
}
|
|
|
|
//// [thisExpressionInIndexExpression.js]
|
|
function f() {
|
|
var _this = this;
|
|
return function (r) { return r[_this]; };
|
|
}
|