Function normalizeJsName

  • Validates that the string name conforms to the JS IdentifierName specification and if not normalizes the name so that it would. This method does not identify or change any keywords meaning that if you pass in a known keyword the same value will be returned. This is a simplified version

    Parameters

    • name: string

      The name to validate

    Returns string

Generated using TypeDoc