We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cff1de commit 2391923Copy full SHA for 2391923
multi-integer-range.ts
@@ -498,7 +498,7 @@ export default MultiRange;
498
499
// Set ES6 iterator, if Symbol.iterator is defined
500
/* istanbul ignore else */
501
-if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
+if (typeof Symbol === 'function' && 'iterator' in Symbol) {
502
MultiRange.prototype[Symbol.iterator] = MultiRange.prototype.getIterator;
503
}
504
0 commit comments