Code coverage report for math/loop.js

Statements: 100% (5 / 5)      Branches: 100% (4 / 4)      Functions: 100% (3 / 3)      Lines: 100% (4 / 4)     

All files » math/ » loop.js
1 2 3 4 5 6 7 8 9 10 111       1 12     1    
define(function(){
    /**
    * Loops value inside range.
    */
    function loop(val, min, max){
        return val < min? max : (val > max? min : val);
    }
 
    return loop;
});