docs/api/javascript/string-manipulation/upcase.md at master · rethinkdb/docs

Skip to content

Navigation Menu

Sign in

Appearance settings

Latest commit

File metadata and controls

37 lines (28 loc) · 531 Bytes

layout api-command
language JavaScript
permalink api/javascript/upcase/
command upcase
io

string

string

related_commands
downcase match split

downcase/

match/

split/

Command syntax

{% apibody %} string.upcase() → string {% endapibody %}

Description

Uppercases a string.

Example:

r.expr("Sentence about LaTeX.").upcase().run(conn, callback)

Result:

Note: upcase and downcase only affect ASCII characters.