Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clamp.js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clamp.js - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "clamp.js",
"version": "0.2.0",
"version": "0.2.1",
"description": "Returns a function that clamps input values to range [min <= x <= max].",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,5 +28,3 @@ # clamp.js (written in ES6)

const limiter = clamp(0, 3);
[1,2,3,4,5].map(limiter); // [1,2,3,3,3]
[1,2,3,4,5].map(clamp(0, 3)); // [1,2,3,3,3]
```

@@ -33,0 +31,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc