@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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.110latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.110
1.0.00
1.0.0-beta.10

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