Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: