If you are looking for a math function though, just use Javascripts %-operator.
Meaning, if you want to calculate number mod 2 use number%2
The value of this operation is the division remainder (9%2 = 1)
If you are looking for a math function though, just use Javascripts %-operator.
Meaning, if you want to calculate number mod 2 use number%2
The value of this operation is the division remainder (9%2 = 1)