utils/casing.js
function dashCase(str) {
        var newStr = '';

        for (var i = 0, len = str.length; i < len; i++) {
            if (str[i] === str[i].toUpperCase()) { newStr += '-'; }
            newStr += str[i].toLowerCase();
        }

        return newStr;
    }
function dashCase(str) {
        var newStr = '';

        for (var i = 0, len = str.length; i < len; i++) {
            if (str[i] === str[i].toUpperCase()) { newStr += '-'; }
            newStr += str[i].toLowerCase();
        }

        return newStr;
    }
function dashCase ( str ) { var newStr = '' ; for ( var i = 0 , len = str . length ; i < len ; i ++ ) { if ( str [ i ] === str [ i ] . toUpperCase ( ) ) { newStr += '-' ; } newStr += str [ i ] . toLowerCase ( ) ; } return newStr ; }
Convert a camelCase string into dash case
@param str
Convert a camelCase string into dash case