Skip to content

lengthGreaterThan ​

lengthGreaterThan() tests whether the length of a String is strictly greater than a value. Supports the curried version.

Interactive example ​

Syntax ​

Classic signature ​

typescript
function lengthGreaterThan(
	primitive: String, 
	length: Number | number
): boolean

Curried signature ​

typescript
function lengthGreaterThan(
	length: Number | number
): (primitive: String) => boolean

Parameters ​

  • primitive : wrapped String (classic signature only).
  • length : comparison threshold.

Return value ​

A boolean indicating whether primitive.length > length.

See also ​

Released under the MIT license.