Enable manipulation on interval object.
What's in the box
All function are curried. Output keeps the input's structure and type. No input mutation.
- Intersection *
- Union *
- Subtraction *
- Complement *
- Split *
- Overlapping *
Functions marked with
* both accept interval and Array/ReadonlyArray of interval
Intervals-fn is distributed on the latest channel:
$ npm install intervals-fn --save
Visit the homepage for an extensive API documentation:
Intervals-fn includes typings for TypeScript.