(dividend, divisor)
| 5 | * @returns {[result: number, remainder: number]} |
| 6 | */ |
| 7 | const floorDiv = (dividend, divisor) => { |
| 8 | const remainder = dividend % divisor |
| 9 | const result = Math.floor(dividend / divisor) |
| 10 | |
| 11 | return [result, remainder] |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Converts a string from one base to other. Loses accuracy above the value of `Number.MAX_SAFE_INTEGER`. |
no outgoing calls
no test coverage detected