timespan-overlap
v1.0.1
Published
check if two given time spans overlaps
Downloads
4
Maintainers
Readme
timespan-overlap
check if two given timespans overlaps
api
const overlap = require('timespan-overlap')
- overlap([timespan], [timespan to test]) returns a boolean
- overlap([timespan], [[timespans to test]]) returns an object with the
timespans
as keys and a boolean as value
example
const overlap = require('timespan-overlap')
overlap([1495381349828, 1495381355955], [1495381355956, 1495381355965])
// returns true