3 ms·
`if (color === "Red") {` This counter example against using unions of literals would result in a compiler error ts(2367). Which only furthers the argument for
by tengbretson 2y ago
`if (color === "Red") {`
This counter example against using unions of literals would result in a compiler error ts(2367). Which only furthers the argument for using unions of literals instead.
- deleted 2y ago[deleted]