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-colorjibo-sdkilead-ibpmp-design-newhubot-wizards-duelidyll-function-plotimage-sdfimage-magnifyimage-annotate-reactinfimind-tmp-editorhuangge-react-navigationgs-rimhicipsainterplay-rangeholman-react-image-annotatehx-react-navigationmaterialize-reactlorem-pix@wcarpenter96/react-image-annotate@wynk/react-native-swipe-cards@xcentium/vue-color@tucy/vue3-color@tsehang/native-base@thenetcircle/react-navigation@thing.js/kiss-ui@vietkidz/rn-sliding-up-panel@vietkidz/react-navigation@vorld/react-image-magnify@unpourtous/react-navigation@xrhcc-flow/busiflow@xrhcc-flow/componentsamobile-uiah-vue-coloradaptable-textai-image-annotatoraxis3daxis3d-orbit-cameraaudio-2.0.0audio-buffer-utilsaudio-frequency-temperedaudio-frequency-to-indexantispambotjsark-react-native-navigationar-image-magnify@aaxis/native-base@achmadk/legacy-native-base@codler/native-base@ajaybhatia/native-base@creenv/colorpicker@cross2d/react-native-experimental-navigation@cross2d/react-web-experimental-navigation@hawk-ui/color-pickerspring-inputu-wave-api-v1tso-react-navigationtusk-annotatetusk-annotate-tooltouch-flicktouch-scroll-physicsto-uint8trent-super-componentsuser-email-generator
1.0.1

11 years ago

1.0.0

12 years ago

0.0.0

12 years ago