docs: function ToInteger(arg) {
    var number = Number(arg)
    if (Number.isNaN(number)) {
      return 0
    }
    if (
      1 / number === Infinity || // Positive Zero
      1 / number === -Infinity || // Negative Zero
      number === Infinity ||
      number === -Infinity
    ) {
      return number
    }
    /*
     * Effectively:
     * sign = number < 0 || 1 / number === -Infinity ? -1 : 1
     * magnitude = Math.floor(Math.abs(number))
     * return sign * magnitude
     */
    return number < 0 ? Math.ceil(number) : Math.floor(number)
  }