index.js
function parseProps(value) {
  var pattern = /^{/;
  if (pattern.test(value)) {
    value = JSON.parse(value);
  }
  return value;
}
function parseProps(value) {
  var pattern = /^{/;
  if (pattern.test(value)) {
    value = JSON.parse(value);
  }
  return value;
}
function parseProps ( value ) { var pattern = / ^{ / ; if ( pattern . test ( value ) ) { value = JSON . parse ( value ) ; } return value ; }
parseProps
Return the value of the data-attribute
Parse the value if it looks like an object
@param  {String} value
@return {String} value
parseProps Return the value of the data - attribute Parse the value if it looks like an object