2014-07-13 01:04:16 +02:00
|
|
|
//// [inOperatorWithFunction.ts]
|
|
|
|
var fn = function (val: boolean) { return val; }
|
|
|
|
fn("a" in { "a": true });
|
|
|
|
|
|
|
|
|
|
|
|
//// [inOperatorWithFunction.js]
|
2015-03-09 02:23:23 +01:00
|
|
|
var fn = function (val) {
|
|
|
|
return val;
|
|
|
|
};
|
|
|
|
fn("a" in {
|
|
|
|
"a": true
|
|
|
|
});
|