floor.js 208 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 define(function(){ /** * Floor value to full steps. */ function floor(val, step){ step = Math.abs(step || 1); return Math.floor(val / step) * step; } return floor; });