Array.prototype.indexOf
and Date.now
have been introduced in ES5. Why doesn't Typescript transpile, if I compile following code stored in file test.ts?
Date.now();
[1,2,3].indexOf(2);
The command I use is tsc -t es3 test.ts
. The resulting test.js is completely identical to test.ts.
Why doesn't Typescript transpile, if I compile following code stored in file test.ts?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With