1.0.0 • Published 10 years ago

interval-union v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

interval-union

compute the union of two intervals

install

npm install interval-union

use

var iunion = require('interval-union');

console.log(iunion([1, 2], [3, 4]));
// output: [1, 4]

api signature

iunion(a, b, out)

  • a is the first interval
  • b is the second interval
  • out is an optional 2 part araray. Provide this to avoid generating garbage
  • returns: 2 part array

license

MIT