timespan-overlap

1.0.1 • Public • Published

timespan-overlap

check if two given timespans overlaps


Build StatusCoverage StatusISC LicenseNodeJS

JavaScript Style Guide

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

ISC License (ISC)

Package Sidebar

Install

npm i timespan-overlap

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • quim