Init. Map does not function and only working on backend at the moment.
This commit is contained in:
13
node_modules/to-array/index.js
generated
vendored
Normal file
13
node_modules/to-array/index.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
module.exports = toArray
|
||||
|
||||
function toArray(list, index) {
|
||||
var array = []
|
||||
|
||||
index = index || 0
|
||||
|
||||
for (var i = index || 0; i < list.length; i++) {
|
||||
array[i - index] = list[i]
|
||||
}
|
||||
|
||||
return array
|
||||
}
|
Reference in New Issue
Block a user