MCPcopy
hub / github.com/keepfool/vue-tutorials / toArray

Function toArray

06.Router/basic/js/vue.js:232–240  ·  view source on GitHub ↗

* Convert an Array-like object to a real Array. * * @param {Array-like} list * @param {Number} [start] - start index * @return {Array}

(list, start)

Source from the content-addressed store, hash-verified

230 */
231
232 function toArray(list, start) {
233 start = start || 0;
234 var i = list.length - start;
235 var ret = new Array(i);
236 while (i--) {
237 ret[i] = list[i + start];
238 }
239 return ret;
240 }
241
242 /**
243 * Mix properties into target object.

Callers 12

vue.jsFile · 0.70
compileFunction · 0.70
compileElementFunction · 0.70
makeTextNodeLinkFnFunction · 0.70
makeChildLinkFnFunction · 0.70
extractAttrsFunction · 0.70
extractFragmentFunction · 0.70
dataAPIFunction · 0.70
eventsAPIFunction · 0.70
filterByFunction · 0.70
orderByFunction · 0.70
installGlobalAPIFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected