mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
507 B
507 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Clamp | clamp | math.go#L59 | core | math | https://go.dev/play/p/RU4lJNC2hlI |
|
|
30 |
|
Clamps a number within inclusive lower and upper bounds.
lo.Clamp(42, -10, 10)
// 10