FaasJS
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文

Documents / @faasjs/ant-design / idToTitle

Function: idToTitle()

idToTitle(id): string

Converts an identifier string to a title case string.

This function takes an identifier string with words separated by underscores, capitalizes the first letter of each word, and joins them together without spaces.

Parameters

id

string

The identifier string to convert.

Returns

string

The converted title case string.

Example

idToTitle('example_id'); // returns 'ExampleId'