mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 09:17:55 -05:00
9 lines
211 B
JavaScript
9 lines
211 B
JavaScript
// Generated by CoffeeScript 1.11.1
|
|
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));
|