.toTitle()

Description

toTitle returns the input string but where each word is capitalised

Parameters

toTitle takes no parameters

Usage On Strings

num = "hello/world"

log num.toTitle()
// Hello/World

Last updated