8 lines
216 B
TypeScript
8 lines
216 B
TypeScript
//// [inOperatorWithFunction.ts]
|
|
var fn = function (val: boolean) { return val; }
|
|
fn("a" in { "a": true });
|
|
|
|
|
|
//// [inOperatorWithFunction.js]
|
|
var fn = function (val) { return val; };
|
|
fn("a" in { "a": true });
|