mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
CoffeeScript 1.9.3
This commit is contained in:
parent
769f02ec05
commit
b58772e8a7
71 changed files with 267 additions and 163 deletions
8
documentation/js/modulo.js
Normal file
8
documentation/js/modulo.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
// 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));
|
Loading…
Add table
Add a link
Reference in a new issue