function toArray(value) {
  return Array.from ? Array.from(value) : slice.call(value);
}
Convert array-like or iterable object to an array.
@param {*} value - The value to convert.
@returns {Array} Returns a new array.