src-rx/src/components/Utils.js
/**
     * Pad the given number with a zero if its not 2 digits long.
     * @param {string | number} num
     */
Pad the given number with a zero if its not 2 digits long.
@param {string | number} num
Pad the given number with a zero if its not 2 digits long . @param { string | number } num
static padding(num) {
        if (typeof num === 'string') {
            if (num.length < 2) {
                return '0' + num;
            } else {
                return num;
            }
        } else if (num < 10) {
            return '0' + num;
        } else {
            return num;
        }
    }
static padding ( num ) { if ( typeof num === 'string' ) { if ( num . length < 2 ) { return '0' + num ; } else { return num ; } } else if ( num < 10 ) { return '0' + num ; } else { return num ; } }
Pad the given number with a zero if its not 2 digits long.
Pad the given number with a zero if its not 2 digits long .