aha-utils
v0.0.1
Published
Calc Tools
Downloads
2
Readme
快捷计算
安装 :
npm i aha-utils
使用
let arr = [[3, 6], [7, 8], [1, 4], [7, 10]]
let unionArr = unionInset(arr)
console.log(unionArr) // [ [ 1, 6 ], [ 7, 10 ] ]
console.log(sumUnions(unionArr)) // 8 // = > 6 - 1 + 10 - 7