@nicolawealth/clamp
v0.0.2
Published
  where low and high define the acceptable range for value to be in.
If value is undefined then it is reassigned to the value of def before clamping. If value is below the given range, it is reassigned to the value of low to clamp it.
If value is above the given range, it is reassigned to the value of high to clamp it.
Testing
Tests can be found in clamp.test.ts located in clamp/src and should be run with sinon, mocha and nyc.
