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

just-clamp

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-clamp - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

index.d.ts

2

index.js

@@ -6,3 +6,3 @@ module.exports = clamp;

clamp(1, n, 12); // 5
clamp(12, n, 3); // 3
clamp(12, n, 3); // 5
clamp(8.2, n, 9,4); // 8.2

@@ -9,0 +9,0 @@ clamp(0, n, 0); // 0

{
"name": "just-clamp",
"version": "3.1.0",
"version": "3.2.0",
"description": "restrict a number within a range",

@@ -24,2 +24,2 @@ "main": "index.js",

}
}
}
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