build/utils/number.js
/**
     *
     * @param {*} num
     *  Pass your desired number to the putCommas method
     *  and deliver it with a comma between each 3-digit piece.
     *  putCommas(12345);
     *  => 12,345
     */
@param {*} num
Pass your desired number to the putCommas method
and deliver it with a comma between each 3-digit piece.
@param { * } num Pass your desired number to the putCommas method and deliver it with a comma between each 3 - digit piece .
function putCommas() {
        var num = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
        if (typeof num === 'undefined') return num;
        if (typeof num === 'number') num = num.toString();
        return num.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
    }
function putCommas ( ) { var num = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : 1 ; if ( typeof num === 'undefined' ) return num ; if ( typeof num === 'number' ) num = num . toString ( ) ; return num . replace ( / \B(?=(\d{3})+(?!\d)) / g , ',' ) ; }
@param {*} num
  Pass your desired number to the putCommas method
  and deliver it with a comma between each 3-digit piece.
@param { * } num Pass your desired number to the putCommas method and deliver it with a comma between each 3 - digit piece .