@hellomonday/clamp
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@hellomonday/clamp

Constrain a value to lie between two further values.

Install

$ npm install --save @hellomonday/clamp

Usage

const clampedValue = clamp(0, 10, 100);

License

MIT © Hello Monday

Dependents (0)

Package Sidebar

Install

npm i @hellomonday/clamp

Weekly Downloads

10

Version

1.0.1

License

MIT

Unpacked Size

1.78 kB

Total Files

4

Last publish

Collaborators

  • anderssjessen
  • virgilspruit
  • johnnyslack
  • zerguei
  • supermoos