Checks if the remainer is equal to the specified value when the input is divided by the divider.
const multipleOfTwo = modulo(2, 0);multipleOfTwo(3); // Error: modulomultipleOfTwo(6); // passes Copy
const multipleOfTwo = modulo(2, 0);multipleOfTwo(3); // Error: modulomultipleOfTwo(6); // passes
Value used for the division.
Value that should remain after the division is done.
Checks if the remainer is equal to the specified value when the input is divided by the divider.
Example