lib/transformToNestedDomStyleObjects.js
function transformPropertiesToCamelCase (object) {
  var output = {}

  for (var _key in object) {
    if (typeof object === 'string') { return object.replace(' !important', '') }
    var key = _key
    var value = object[_key]
    if (~key.indexOf('-')) {
      var splittedKeys = key.split('-')
      splittedKeys = splittedKeys.map(function (v, i) {
        return i > 0
        // UCFIRST if ! first element
        ? v.charAt(0).toUpperCase() + v.substr(1) : v
      })
      key = splittedKeys.join('')
    }
    output[key] = transformPropertiesToCamelCase(value)
  }
  return output
}
function transformPropertiesToCamelCase (object) {
  var output = {}

  for (var _key in object) {
    if (typeof object === 'string') { return object.replace(' !important', '') }
    var key = _key
    var value = object[_key]
    if (~key.indexOf('-')) {
      var splittedKeys = key.split('-')
      splittedKeys = splittedKeys.map(function (v, i) {
        return i > 0
        // UCFIRST if ! first element
        ? v.charAt(0).toUpperCase() + v.substr(1) : v
      })
      key = splittedKeys.join('')
    }
    output[key] = transformPropertiesToCamelCase(value)
  }
  return output
}
function transformPropertiesToCamelCase ( object ) { var output = { } for ( var _key in object ) { if ( typeof object === 'string' ) { return object . replace ( ' !important' , '' ) } var key = _key var value = object [ _key ] if ( ~ key . indexOf ( '-' ) ) { var splittedKeys = key . split ( '-' ) splittedKeys = splittedKeys . map ( function ( v , i ) { return i > 0 // UCFIRST if ! first element ? v . charAt ( 0 ) . toUpperCase ( ) + v . substr ( 1 ) : v } ) key = splittedKeys . join ( '' ) } output [ key ] = transformPropertiesToCamelCase ( value ) } return output }
f.e. font-family => fontFamily border-radius => borderRadius
f . e . font - family = > fontFamily border - radius = > borderRadius