is-between-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

IsBetween.js

Build Status npm version

Install

npm i is-between-js

How to use?

You can import the isBetween function in your JavaScript/TypeScript file and use it like this!

The TypeScript types are included in the library.

import { isBetween } from 'is-between-js'
 
isBetween(1).min(0).max(10).calc() // returns true
isBetween(10).min(0).max(9).calc() // returns false

or

import { Between } from 'is-between-js'
 
const between = new Between()
 
between.value(1).min(0).max(10).calc() // returns true
between.value(10).min(0).max(9).calc() // returns false

/is-between-js/

    Package Sidebar

    Install

    npm i is-between-js

    Weekly Downloads

    10

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    19.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • raymonschouwenaar