function toDashedProperties ( hash ) {
    var transformed = {};

    _.each( hash, function ( value, key ) {
        transformed[toDashed( key )] = value;
    } );

    return transformed;
}
function toDashedProperties ( hash ) {
    var transformed = {};

    _.each( hash, function ( value, key ) {
        transformed[toDashed( key )] = value;
    } );

    return transformed;
}
function toDashedProperties ( hash ) { var transformed = { } ; _ . each ( hash , function ( value , key ) { transformed [ toDashed ( key ) ] = value ; } ) ; return transformed ; }
Returns a transformed hash in which all camelCased property names have been replaced by dashed property names. The
input hash remains untouched.

Property values are not modified.

Simple implementation, but good enough for the attribute names we deal with here.

Example: { fooBar: "whatEver" } => { "foo-bar": "whatEver" }

@param   {Object} hash
@returns {Object}
Returns a transformed hash in which all camelCased property names have been replaced by dashed property names . The input hash remains untouched .