1.0.1 • Published 10 years ago

clamp v1.0.1

Weekly downloads
275,267
License
MIT
Repository
github
Last release
10 years ago

clamp frozen

Clamp a value between two other values. It's as simple as modules come - saving keystrokes because I've had to write this function too many times.

Usage

clamp

clamp(value, a, b)

Returns value, if it is between a and b. Otherwise, returns the number it's gone past.

License

MIT. See LICENSE.md for details.

@invoice-simple/react-navigationgore-eslintlookly-preset-eslintspace-preconfigured-eslinttmp-editor_chengtmp-editor_wildccyreact-image-annotate-filterable@wildccy/tmp-editorhangry-rn-slide-up-panel@hai5/react-navigationreact-image-magnify-fixedreact-navigation-fixed-measureinwindow@heyjoule/sliding-up-panel@react-navigation/react-navigation-experimental@react-navigation/fluid@everything-registry/sub-chunk-1331@xrhcc-ui/basevue-dovezh-react-navigationzy-react-navigationwm-react-native-routerxtracta-react-image-magnifyvue-derlte-colorvue-colorvue-color2vue-color3vue-color-betavue-color-cmykvue-color-nextvue-color-rgbvue-coloryz2vue-color-sipverlet-systemvideowall-seekbarvoluptateearum@hawk-ui/color-picker@mapbox/react-colorpickrvue3-colorwecare-native-base-webx6-vue3-components@linkfit/linkfit-components@gluck/vue-colorgl-scatter2d-sdfgl-spectrum@moezx/x6-react-componentsgrid-react-navigation-webview-stack-navigatorgm-react-navigationfundamental-react-nativeflamingoforceclouds-native-baseforceclouds-react-navigation@milosmladenovicwork/react-image-magnify@mkilp/react-image-magnifyfzb-vue-colorgefen-loggergit-last-changed-files@kilokilo/ewz-interactive-circle@kilokilo/ewz-slider@kilokilo/ewz-stromkostenrechner@jonny/react-navigation@infimind/tmp-editor@infimind/tmp-editor-v3@jgierer12/function-plot@jemmyphan/react-navigation@jsierles/ex-navigationilead-ibpmp-design-newimage-sdfimage-annotate-reactimage-magnifygs-rim@rediminds/image-video-annotatorinfimind-tmp-editoridyll-function-plot@red-elephant/native-baseinterplay-range@hdlegend/design-systemeasy-magnify@intelligence-stack/react-image-annotate@jcribeiro/native-base-webholman-react-image-annotatehuangge-react-navigationhubot-wizards-duelhx-react-navigation@silentnerd/react-image-annotate@searpent/react-image-annotate@segment/inspector-core@shopmacher/react-image-magnifyjibo-sdk@eylonkoenig/react-image-annotate@exponent/ex-navigation@expo/ex-navigation@eipgrid/layout@plotly/point-cluster@fangm/native-base@elie222/ex-navigationhicipsa@soyjak/utils@suleyman2712/custom-orbit-controls@thing.js/kiss-ui@thenetcircle/react-navigation
1.0.1

10 years ago

1.0.0

10 years ago

0.0.0

11 years ago