Created
March 10, 2015 18:20
-
-
Save pseudosavant/cb9087fbd7244b16aca4 to your computer and use it in GitHub Desktop.
Create an empty dense array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create an empty dense array | |
function denseArray(length) { | |
return Array.apply(null, Array(length)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment