Skip to content

qie.toProperCase

Signature: qie.toProperCase(inputString)

Returns: String result - the proper-cased inputString, or null if inputString is null

Converts inputString to proper case (capitalizes each name/word). A null inputString returns null.

Parameters

Type Name Description Default
String inputString the String to be converted to proper case, may be null

Example

var crazyString = "Who Do yOu THINK yOu ARE!!?";
var properCasedCrazyString = qie.toProperCase(crazyString); // Who Do You Think You Are!!?

var nullValue = null;
var stillNull = qie.toProperCase(nullValue); // null safe call