Files
coffeescript/documentation/coffee/modulo.js
Jeremy Ashkenas c37f284771 redoc
2015-05-27 11:57:31 -04:00

9 lines
210 B
JavaScript

// Generated by CoffeeScript 1.9.3
var modulo = function(a, b) { return (+a % (b = +b) + b) % b; };
-7 % 5 === -2;
modulo(-7, 5) === 3;
tabs.selectTabAtIndex(modulo(tabs.currentIndex - count, tabs.length));