1.0.0 • Published 10 years ago
interval-union v1.0.0
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 intervalb
is the second intervalout
is an optional 2 part araray. Provide this to avoid generating garbage- returns: 2 part array
license
1.0.0
10 years ago