Check if a number is between 2 numbers
import { number } from "@rjweb/utils"number.between(5, 0, 10) // truenumber.between(5, 10, 20) // falsenumber.between(5, 5, 5) // true Copy
import { number } from "@rjweb/utils"number.between(5, 0, 10) // truenumber.between(5, 10, 20) // falsenumber.between(5, 5, 5) // true
1.12.17
nodejs, browser
Check if a number is between 2 numbers