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