function toArray(obj) {
  const len = obj.length
  const arr = new Array(len)
  for (let i = 0; i < len; ++i) {
    arr[i] = obj[i]
  }
  return arr
}
Converts an array-like object into an array.

@memberof Shim.prototype
@param {*} obj - The array-like object (i.e. `arguments`).
@returns {Array.<*>} An instance of `Array` containing the elements of the
 array-like.