lib/utils.js
function parseProps(attributes, prefix) {
  prefix += '-';

  const props = {};

  for (const prop in attributes) {
    // Strip 'inline-' and store
    if (prop.indexOf(prefix) == 0) {
      let value = attributes[prop];

      if (value === 'false') {
        value = false;
      }
      if (value === 'true') {
        value = true;
      }
      props[prop.slice(prefix.length)] = value;
    }
  }

  return props;
}
function parseProps(attributes, prefix) {
  prefix += '-';

  const props = {};

  for (const prop in attributes) {
    // Strip 'inline-' and store
    if (prop.indexOf(prefix) == 0) {
      let value = attributes[prop];

      if (value === 'false') {
        value = false;
      }
      if (value === 'true') {
        value = true;
      }
      props[prop.slice(prefix.length)] = value;
    }
  }

  return props;
}
function parseProps ( attributes , prefix ) { prefix += '-' ; const props = { } ; for ( const prop in attributes ) { // Strip 'inline-' and store if ( prop . indexOf ( prefix ) == 0 ) { let value = attributes [ prop ] ; if ( value === 'false' ) { value = false ; } if ( value === 'true' ) { value = true ; } props [ prop . slice ( prefix . length ) ] = value ; } } return props ; }
Parse props with 'prefix' from 'attributes'
@param {Object} attributes
@param {String} prefix
@returns {Object}
Parse props with prefix from attributes