@rvoh/dream
    Preparing search index...

    Function pascalize

    • Converts a string or the keys of an object to PascalCase.

      Examples: pascalize('helloWorld-how-are-you') // 'HelloWorldHowAreYou' pascalize('hello world') // 'HelloWorld' pascalize('hello world') // 'HelloWorld' pascalize({ hello_world: 'how_are_you' }) // { HelloWorld: 'how_are_you' }

      Type Parameters

      • const T
      • RT

      Parameters

      • target: T

        The string or object to pascalize

      Returns RT

      The pascalized string or object