lib/utils/escapeAttributeName.js
function propertyNameToAttribute(name) {
  var result = name.replace(/([A-Z])/g, function (match, letter) {
    return '-' + letter.toLowerCase();
  });
  return 'data-' + result;
}
function propertyNameToAttribute(name) {
  var result = name.replace(/([A-Z])/g, function (match, letter) {
    return '-' + letter.toLowerCase();
  });
  return 'data-' + result;
}
Function converts dataset property name "someValue" to "data-some-value".

@param {string} name
@returns {string}
 @function
@param name