interval-management
Advanced tools
@@ -15,2 +15,5 @@ "use strict"; | ||
| start.forEach((value, i) => { | ||
| if (mappedIndex[JSON.stringify(value)] !== undefined) { | ||
| throw Error('Cannot define array-like interval with two equal (as JSON.stringify) values!'); | ||
| } | ||
| mappedIndex[JSON.stringify(value)] = i; | ||
@@ -17,0 +20,0 @@ }); |
+1
-1
| { | ||
| "name": "interval-management", | ||
| "version": "2.1.0", | ||
| "version": "2.1.1", | ||
| "description": "No dependency interval management library, able to work with numbers, string, Dates or special objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+1
-0
@@ -164,4 +164,5 @@ # Intervals documentation | ||
| 5) For an interval to have 'infinite' start | ||
| 6) Define an array-like interval with values which serialize to the same string | ||
| If there are any problems, do not hesitate to create an issue or a pull request. Thank you. |
29043
0.94%557
0.54%168
0.6%