Skip to content

Instantly share code, notes, and snippets.

@HACK21 HACK21/InitArray.js
Created May 15, 2017

What would you like to do?
Init empty Array width default value
function range(len){
return Array.apply(null, Array(len)).map(function (v,k) { return k });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.