Types. String semantics

from blog Mike Saburenkov, | ↗ original
That's the third article in a series on TypeScript started by ‘TypeScript. Bad Parts’. You can read them in any order as they aren't really connected apart from covering the same topic. But if you can't decide, make it chronologically. This time I'd like to show how you can leverage types to simplify your runtime code. Let's say we have a...