Skip to content

greaterThan

greaterThan() tests whether a Number is strictly greater than a threshold (wrapped or raw). Supports the curried version.

Interactive example

Syntax

Classic signature

typescript
function greaterThan(
	value: Number, 
	threshold: Number | number
): boolean

Curried signature

typescript
function greaterThan(
	threshold: Number | number
): (value: Number) => boolean

Parameters

  • value : base value (classic signature only).
  • threshold : comparison threshold.

Return value

true if unwrap(value) > unwrap(threshold), otherwise false.

See also

Released under the MIT license.