GitShow/sindresorhus/math-clamp
sindresorhus

math-clamp

Clamp a number

by sindresorhus
Star on GitHubForknpm

JavaScript

17 stars4 forks4 contributorsQuiet · 11mo agoSince 2015v2.2.1MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus12 contributions
Richienb
Richienb6 contributions
sultaniman
sultaniman2 contributions
alebelcor
alebelcor1 contribution

Languages

View on GitHub →
JavaScript82.1%
TypeScript17.9%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
Richienb
Edge case at zeroClosedIssue

This means that: I think it should be the other way round.

Richienb · 8mo ago
Richienb
`BigInt` supportClosedIssue

Seperate functions, or type checks in a single function? I think seperate functions to be more explicit and so that we don't run as much code in each call.

Richienb · 11mo ago
Richienb
Support `BigInt`sMergedPR

It was already implicitly supported, here we test and document it. Fixes #18

Richienb · 11mo ago
Structured data for AI agents

Repository: sindresorhus/math-clamp. Description: Clamp a number Stars: 17, Forks: 4. Primary language: JavaScript. Languages: JavaScript (82.1%), TypeScript (17.9%). License: MIT. Latest release: v2.2.1 (2y ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 71%. Top contributors: sindresorhus, Richienb, sultaniman, alebelcor.

·@ofershap

Replace github.com with gitshow.dev