Converts the string to Title Case. This will capitalize
the letter of each word that is separated by a space. Underscores
are considered spaces. Hyphens are respected.
Parameters
text: string
Returns string
Example
title("hello world"); // Hello World title("hello-world"); // Hello-world title("hello_world"); // Hello World title("HELLO wORLD"); // Hello World
Converts the string to Title Case. This will capitalize the letter of each word that is separated by a space. Underscores are considered spaces. Hyphens are respected.