
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
is-num-between
Advanced tools
Created: Mar 31, 2021 11:35 AM
min
and max
with an inclusive
flag for extra clarity.Install with npm:
$ npm install is-num-between
import {isBetween} from 'is-num-between'
isBetween(1, 1, 3, true) //true
isBetween(1, 1, 3) //false
isBetween(2, 1, 3) //true
isBetween(value, min, max, inclusive): boolean
Returns if the value is between the min and max.
Argument | Type | Description |
---|---|---|
value | number | Value to be tested if it falls within the range. |
min | number | The minimum of the range. |
max | number | The maximum of the range |
inclusive | boolean | Determines if the value can be equal to the min or max. |
FAQs
A package for determining if a number is between two numbers
The npm package is-num-between receives a total of 5 weekly downloads. As such, is-num-between popularity was classified as not popular.
We found that is-num-between demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.