r/programming • • Aug 20 '20

Announcing TypeScript 4.0

https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/
1.3k Upvotes

236 comments sorted by

View all comments

Show parent comments

24

u/herpington Aug 20 '20

That is one ugly OS version detection.

2

u/__konrad Aug 21 '20

Still better than if (name.contains("win")) which also detects Darwin...