Intervals-fn
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.
Binary operations
- Intersection
- Union
- Subtraction
Manipulations
- After
- Before
- During
- Ending
- Equal
- Meeting
- Overlapping
- Starting
Accepted input
{ start: number, end: number };
{ from: number, start: number };
[number, number];
Installation
Intervals-fn is distributed on the dev and latest channel:
$ npm install intervals-fn@dev --save
Advenced docs
Visit the homepage for an extensive API documentation:
https://js-republic.github.io/intervals-fn
Contributing
Contributions are welcome and appreciated. Feel free to start an issue or create a pull requests.
This repo use AngularJS's commit message convention. You can use cz-cli to format your commit.