* This function performs both division and modulo operation at the same time.
* It returns the quotient and the remainder of the division of the dividend by
* @param {number} dividend - The number to be divided.
* @param {Exclude<number, 0>} divisor - The number by which the dividend is to
* be divided. This cannot be `0`
* @returns {[number, number]} An array where the first element is the quotient
* and the second element is the remainder.
divisor: Exclude<number, 0>,
): [Quotient, Remainder] => [Math.floor(dividend / divisor), dividend % divisor]