text: import toCamelCase from './../utils/toCamelCase';
  
  export default styleObject => {
  
  	let styles = {};
  
  	if(typeof styleObject === 'string') {
  		let styleArray = styleObject.split(';');
  		styleArray.pop();
  		styleArray.forEach(style => {
  		    let indexOfColon = style.indexOf(':');
  		    let key = toCamelCase(style.slice(0, indexOfColon));
  		    let value = style.slice(indexOfColon + 1);
  				value = isNaN(value) ? value.trim() : Number(value);
  			styles[key.trim()] = value;
  		})
  
  
  	} else {
  		for(let key in styleObject) {
  			if(!isNaN(key)) {
  				styles[styleObject[key]] = styleObject[styleObject[key]];
  			}
  		}
  	}
  	return styles;
  }