app/styleguide/js/libs/highlighter/shCore.js
/**
 * 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.
 */
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.
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 .
function toArray(source)
{
  var result = [];
  for (var i = 0; i < source.length; i++) 
    result.push(source[i]);
  return result;
}
function toArray ( source ) { var result = [ ] ; for ( var i = 0 ; i < source . length ; i ++ ) result . push ( source [ i ] ) ; return result ; }
Converts the source to array object.
Converts the source to array object .