You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var pagesToPrint =multirange(userInput).intersect(pagesInMyDoc);
147
-
console.log(pagesToPrint);
148
-
// prints '1-10,15-20,90-100'
147
+
console.log(pagesToPrint); // prints '1-10,15-20,90-100'
149
148
```
150
149
151
-
Unbounded ranges cannot be iterated over, and you cannot call `#toArray()` for the obvious reason. Calling `#length()` for unbounded ranges will return `Infinity`.
150
+
Unbounded ranges cannot be iterated over, and you cannot call `#toArray()`
151
+
for the obvious reason. Calling `#length()` for unbounded ranges will return `Infinity`.
152
152
153
153
### Negative ranges
154
154
@@ -163,8 +163,9 @@ console.log(mr1 + ''); // prints '(-5)-0'
163
163
```
164
164
165
165
Again, note that passing `-5` to the string parser means
166
-
"all integers <=5 (including 0 and -10000)" rather than "minus five".
167
-
If you are only interested in positive numbers, use
166
+
"all integers <=5 (including 0 and all negative integers)"
167
+
rather than "minus five".
168
+
If you are only interested in positive numbers, you can use
0 commit comments