packages/react-swipeable-views-core/src/mod.js
function mod(n, m) {
  const q = n % m;
  return q < 0 ? q + m : q;
}
function mod(n, m) {
  const q = n % m;
  return q < 0 ? q + m : q;
}
function mod ( n , m ) { const q = n % m ; return q < 0 ? q + m : q ; }
Extended version of % with negative integer support.
Extended version of % with negative integer support .