Skip to content

Standard Library

Luís Carlos Moreira edited this page Mar 2, 2018 · 16 revisions

String.count(String) -> Integer
Returns the number of UTF-8 codepoints in the string.

String.lower(String) -> String
Converts all the characters of the string to lowercase.

String.upper(String) -> String
Converts all the characters of the string to uppercase.

String.capitalize(String) -> String
Capitalize the string to title case. All the first characters of words will be uppercase.

`

String.capitalize("hello world") // "Hello World"

`





Clone this wiki locally