Code coverage report for number/pad.js

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

All files » number/ » pad.js
1 2 3 4 5 6 7 8 9 10 11 12 131         1 19     1      
define(['../string/lpad'], function(lpad){
 
    /**
     * Add padding zeros if n.length < minLength.
     */
    function pad(n, minLength){
        return lpad(''+ n, minLength, '0');
    }
 
    return pad;
 
});