1.0.1 • Published 11 years ago

clamp v1.0.1

Weekly downloads
275,267
License
MIT
Repository
github
Last release
11 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/basetennu-respondwm-react-native-routerx6-vue3-componentssupertone-color-wandertext-storetext-animatethreejs-camera-controller-pan-zoom-unified-pointerthreejs-generate-gifthree-pointer-controlsvue-color-sipvue-color2vue-color3vue-color-cmykvue-color-nextvue-color-rgbvue-coloryz2vue-colorvue-color-betavue-dovevideowall-seekbarverlet-systemvoluptateearumvue-derlte-color@ditus/react-image-magnify@dpwolfe/react-navigation@dmchurch/react-mdl@cross2d/react-native-experimental-navigation@cross2d/react-web-experimental-navigation@creenv/colorpickerjibo-sdkspring-inputu-wave-api-v1tso-react-navigationtusk-annotatetusk-annotate-tooltouch-flicktouch-scroll-physicsto-uint8trent-super-componentsuser-email-generator@antv/x6-react-components@antv/x6-components@apostrophecms/vue-color@artis-auxilium/native-base@ashishsaundekar/react-navigation@areslabs/ares-navigation@areslabs/jdreact-navigation@ajaybhatia/native-base@blacksquareca/react-image-magnify@achmadk/legacy-native-base@aaxis/native-base@codler/native-base@deboxsoft/native-base@digiforce-cloud/x6-react-components@dataunion.app/react-annotate@dataunion/react-annotatezh-react-navigationzy-react-navigationvue3-colorwecare-native-base-webzerionprokovanmailxtracta-react-image-magnify@femoon/vue-color@hdlegend/design-system@hawk-ui/color-picker@footgun/collision-2d@eipgrid/layout@elie222/ex-navigation@gluck/vue-color@linkfit/linkfit-components@mapbox/react-colorpickr@expo/ex-navigation@exponent/ex-navigation@eylonkoenig/react-image-annotate@fangm/native-base@milosmladenovicwork/react-image-magnify@mekari/pixel3-color-picker@mekari/pixel-color-picker@mkilp/react-image-magnify@moezx/x6-react-components@intelligence-stack/react-image-annotate@jonny/react-navigation@kilokilo/ewz-interactive-circle
1.0.1

11 years ago

1.0.0

11 years ago

0.0.0

12 years ago