code: function pascalCase (str) {
    return str
      .replace(/_/g, (_, index) => index === 0 ? _ : '-')
      .replace(/(?:^\w|[A-Z]|\b\w)/g, (letter, index) => letter.toUpperCase())
      .replace(invalidChars, '')
  }
docs: Convert text to PascalCase
  @param {string} str Text to be converted
  @return {string} Converted string