Node.js examples for Array:Array Operation
Fill array from another array
Array.from = function(it) { var arr = []; for (var i = 0; i < it.length; i++) { arr[i] = it[i];//from w ww . j ava2s. co m } return arr; }