ramped.at_most
v0.2.0
Published
Return true if the second value is the same as or smaller than the first.
Downloads
1
Readme
Ramped at most
Return true if the second value is the same as or smaller than the first.
Part of the ramped.js collection for functional programming.
Install
To add as a dependency to a Node.js project:
npm i ramped.at_most --save
Usage
at_most = require('ramped.at_most')
is_4_or_less = at_most(4)
is_4_or_less(6)
// false
is_4_or_less(4)
// true
is_4_or_less(2)
// true