src/js/base/core/lists.js
function from(collection) {
  const result = [];
  const length = collection.length;
  let idx = -1;
  while (++idx < length) {
    result[idx] = collection[idx];
  }
  return result;
}
function from(collection) {
  const result = [];
  const length = collection.length;
  let idx = -1;
  while (++idx < length) {
    result[idx] = collection[idx];
  }
  return result;
}
function from ( collection ) { const result = [ ] ; const length = collection . length ; let idx = - 1 ; while ( ++ idx < length ) { result [ idx ] = collection [ idx ] ; } return result ; }
returns a copy of the collection with array type.
@param {Collection} collection - collection eg) node.childNodes, ...
returns a copy of the collection with array type .