JAVASCRIPT   14

mod

Guest on 1st May 2022 04:34:09 PM

  1. export default function mod(n, x) {
  2.     return ((n % x) + x) % x;
  3. }

Raw Paste


Login or Register to edit or fork this paste. It's free.