klyn.String.toCapitalize
method
public native toCapitalize() as String
Description

Returns a new string with the first character capitalized. Uses locale-independent Unicode title casing for the first character and full lowercase mappings for the remainder; the result can change length.

Returns

A new String.

Example

assert "hello WORLD".toCapitalize() == "Hello world"