Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eyelidlessness
on Nov 1, 2021
|
parent
|
context
|
favorite
| on:
Sparse vs. Dense Arrays in JavaScript
Does that mean this:
Array(n).fill()
is a permanent deoptimization? And if so, is the new array returned by:
Array(n).fill().map(x => x)
better optimized (after the, presumably, suboptimal iteration)?
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: