MCPcopy Create free account
hub / github.com/unconed/TermKit / toArray

Function toArray

HTML/external/syntaxhighlighter_3.0.83/src/shCore.js:418–426  ·  view source on GitHub ↗

* Converts the source to array object. Mostly used for function arguments and * lists returned by getElementsByTagName() which aren't Array objects. * @param {List} source Source list. * @return {Array} Returns array.

(source)

Source from the content-addressed store, hash-verified

416 * @return {Array} Returns array.
417 */
418function toArray(source)
419{
420 var result = [];
421
422 for (var i = 0; i < source.length; i++)
423 result.push(source[i]);
424
425 return result;
426};
427
428/**
429 * Splits block of text into lines.

Callers 1

shCore.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected