here's something general to work around the issue.
Benchmarks on jsperf can be found
here. Thanks to
mikolalysenko for finding a faster method.
npm install mod-loop
Returns x % y, for both positive and negative and negative numbers.
x % y
var mod = require('mod-loop') mod(+100, 10) // 0 mod(-100, 10) // 0 mod(-105, 10) // 5 mod(-102, 10) // 8
It’s never been easier to manage developer teams with varying permissions and multiple projects. Learn more about Private Packages and Organizations…
how? learn more