spec/helpers/various-utils.js
function toCamelCasedProperties ( hash ) {
    var transformed = {};

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

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

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

    return transformed;
}
Returns a transformed hash in which all dashed property names have been replaced by camelCased 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: { "foo-bar": "what-ever" } => { fooBar: "what-ever" }

@param   {Object} hash
@returns {Object}