modules/Transformer.js
/**
 * Adds an !important flag to every value
 * @param {Object} styles - an object with styles
 */
Adds an !important flag to every value
@param {Object} styles - an object with styles
Adds an !important flag to every value @param { Object } styles - an object with styles
function importantify(styles) {
  Object.keys(styles).forEach(property => {
    const value = styles[property]
    if (value.toString().indexOf('!important') === -1) {
      styles[property] = value + '!important'
    }
  })
  return styles
}
function importantify ( styles ) { Object . keys ( styles ) . forEach ( property => { const value = styles [ property ] if ( value . toString ( ) . indexOf ( '!important' ) === - 1 ) { styles [ property ] = value + '!important' } } ) return styles }
Adds an !important flag to every value
 @param {Object} styles - an object with styles
Adds an !important flag to every value @param { Object } styles - an object with styles
// add !important flag to achieve higher priority than inline styles