Skip to content

Instantly share code, notes, and snippets.

@atengberg
Last active May 15, 2024 10:47
Show Gist options
  • Save atengberg/129a9220a577881646d29627fe7da744 to your computer and use it in GitHub Desktop.
Save atengberg/129a9220a577881646d29627fe7da744 to your computer and use it in GitHub Desktop.
note to self may15ish - js
// Don't do this:
const badHoleyArray = new Array(10);

Will be forevermore marked as HOLEY (cannot be undone by filling the holes!) and preclude engine's optimizations for arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment