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: modulo
multipleOfTwo(6); // passes
  • Parameters

    • divider: number

      Value used for the division.

    • remainder: number

      Value that should remain after the division is done.

    Returns Assertion<unknown>