lib/attributes-to-props.js
function cssToJs(style) {
  if (typeof style !== 'string') {
    throw new TypeError('First argument must be a string.');
  }
  var styleObj = {};

  styleToObject(style, function(propName, propValue) {
    // Check if it's not a comment node
    if (propName && propValue) {
      styleObj[utilities.camelCase(propName)] = propValue;
    }
  });
  return styleObj;
}
function cssToJs(style) {
  if (typeof style !== 'string') {
    throw new TypeError('First argument must be a string.');
  }
  var styleObj = {};

  styleToObject(style, function(propName, propValue) {
    // Check if it's not a comment node
    if (propName && propValue) {
      styleObj[utilities.camelCase(propName)] = propValue;
    }
  });
  return styleObj;
}
function cssToJs ( style ) { if ( typeof style !== 'string' ) { throw new TypeError ( 'First argument must be a string.' ) ; } var styleObj = { } ; styleToObject ( style , function ( propName , propValue ) { // Check if it's not a comment node if ( propName && propValue ) { styleObj [ utilities . camelCase ( propName ) ] = propValue ; } } ) ; return styleObj ; }
Converts CSS style string to JS style object.

@param  {String} style - The CSS style.
@return {Object}       - The JS style object.
Converts CSS style string to JS style object .