jashkenas/coffee-script — Issue #1856: New operator to check wether a number is divisible by another
Author: Turfel
Created: 2011-11-11 10:43:16+00:00
State: open

Well, my Idea was to add a new operator. It's binary and returns a boolean:
%%
It would check, wether a certain number is divisible by another. For example, 12 %% 4 would return true, 12 %% 5 false. It's basicly just
a % b == 0
but shorter. Might not be as understandable but I don't think that's a big issue.