MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/idd129/announcing_typescript_40/g29keka
r/programming • u/DanielRosenwasser • Aug 20 '20
236 comments sorted by
View all comments
Show parent comments
24
That is one ugly OS version detection.
2 u/__konrad Aug 21 '20 Still better than if (name.contains("win")) which also detects Darwin...
2
Still better than if (name.contains("win")) which also detects Darwin...
if (name.contains("win"))
24
u/herpington Aug 20 '20
That is one ugly OS version detection.