projects
/
platform
/
framework
/
web
/
wrtjs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[Service] Integrate DeviceHome and SignalingServer
[platform/framework/web/wrtjs.git]
/
device_home
/
node_modules
/
to-array
/
index.js
1
module.exports = toArray
2
3
function toArray(list, index) {
4
var array = []
5
6
index = index || 0
7
8
for (var i = index || 0; i < list.length; i++) {
9
array[i - index] = list[i]
10
}
11
12
return array
13
}