snakeCase
Modified on Wed, 02 Aug 2023
Description
Convert string to snake case
Syntax
snakeCase(text)
Parameters
Input Parameter | Type | Description |
---|---|---|
text | string | The string to convert. |
Return value
Type |
---|
string |
Sample
Example | Result | Description |
---|---|---|
snakeCase('John Paul') | 'john_paul' | Convert input text to snake case |
snakeCase('--JOHN-PAUL--') | 'john_paul' | Convert input text to snake case |
To view all the String functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article