Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eyelidlessness
on Nov 7, 2019
|
parent
|
context
|
favorite
| on:
TypeScript 3.7
There is yet a third type of missing value in JS: empty array slot. This appears when you create an array with a length but no values for indexes in that length, e.g. `new Array(100)`.
Edit: also `undefined` is a value in JS as well.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Edit: also `undefined` is a value in JS as well.