zhaojs
2023-06-28 ae644863e2549627c9762604ed72d6b3a1d9374c
1
2
3
export default function mod(n, x) {
    return ((n % x) + x) % x;
}