HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by NathanaelRea | Hacker News Reader
Parent
Full thread
NathanaelRea
·
You could also do
const arr = ["foo" as const]
View on HN
Latty
·
That's also different: "foo"[] as opposed to ["foo"] or readonly ["foo"].
Reply on news.ycombinator.com