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 13 141           1 19     1      
define(['../string/lpad'], function(lpad){
 
    /**
     * Add padding zeros if n.length < minLength.
     * @version 0.2.0 (2011/11/1)
     */
    function pad(n, minLength){
        return lpad(''+ n, minLength, '0');
    }
 
    return pad;
 
});