Hacker News new | ask | show | jobs
by have_faith 20 days ago
`const` in JS doesn't refer to the array being immutable, only that the variable referencing it stays the same (it can't be reassigned), so this is normal in JS.