1.3.2 • Published 3 years ago

common-js-methods v1.3.2

Weekly downloads
3
License
ISC
Repository
-
Last release
3 years ago

common-js-methods 提供了一些常用的方法。

debounce

throttle

easyDeepClone

deepClone

How to deep clone a JavaScript object

isOverlap

判断两个闭合区间是否重叠。

Math.min(end1,end2) >= Math.max(start1,start2)

多区间是否重叠

判断多个区间是否有重叠

const segments = [
  [1, 3],
  [2, 3],
  [4, 8],
];

const result = multiSegmentsIsOverlap(segments); // true

参考文献

How to publish packages to npm (the way the industry does things) TypeScript-Node-Starter

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago