Skip to content

length ​

length() returns the length of a String as a wrapped Number.

Interactive example ​

Syntax ​

typescript
function length(primitive: String): Number

Parameters ​

  • primitive : wrapped String.

Return value ​

A wrapped Number containing the length.

See also ​

Released under the MIT license.