$mod

The `$mod` operator returns the remainder of the division of the first number by the second.

Syntax

{ $mod: [ <expression1>, <expression2> ] }

Parameters

<expression1>stringrequired

The dividend expression that resolves to a number.

<expression2>stringrequired

The divisor expression that resolves to a number.