Skip to content

gt

Summary

Functional equivalent of a > b.

Tip

This is an operator function.

Examples

Keep numbers greater than 5:

1
2
filter(gt(5))([2,4,6,8]);
//=> [6,8]

Parameters

Name Type Description
a number
b number

Return

boolean

AltStyle によって変換されたページ (->オリジナル) /