Skip to content

lte

Summary

Functional equivalent of a <= b.

Tip

This is an operator function.

Examples

Keep numbers lower than or equal to 3:

1
2
filter(lte(3))([1,2,3,4,5]);
//=> [1,2,3]

Parameters

Name Type Description
a number
b number

Return

boolean

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