File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
workspaces/adventure-pack
goodies/typescript/Iterator.from
src/app/__tests__/__snapshots__ Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ declare global {
26
26
return toIterable . call ( iteratorFactory . call ( object ) ) ;
27
27
}
28
28
29
- // eslint-disable-next-line no-prototype-builtins
30
- if ( iteratorPrototype . isPrototypeOf ( object ) ) {
29
+ if ( Object . prototype . isPrototypeOf . call ( iteratorPrototype , object ) ) {
31
30
return toIterable . call ( object as Iterator < T > ) ;
32
31
}
33
32
Original file line number Diff line number Diff line change @@ -1392,8 +1392,7 @@ globalThis.Iterator.from ??= function (object) {
1392
1392
return toIterable.call(iteratorFactory.call(object));
1393
1393
}
1394
1394
1395
- // eslint-disable-next-line no-prototype-builtins
1396
- if (iteratorPrototype.isPrototypeOf(object)) {
1395
+ if (Object.prototype.isPrototypeOf.call(iteratorPrototype, object)) {
1397
1396
return toIterable.call(object);
1398
1397
}
1399
1398
@@ -3381,8 +3380,7 @@ iteratorPrototype.toIterable = function <T>(
3381
3380
return toIterable.call(iteratorFactory.call(object));
3382
3381
}
3383
3382
3384
- // eslint-disable-next-line no-prototype-builtins
3385
- if (iteratorPrototype.isPrototypeOf(object)) {
3383
+ if (Object.prototype.isPrototypeOf.call(iteratorPrototype, object)) {
3386
3384
return toIterable.call(object as Iterator<T>);
3387
3385
}
3388
3386
Original file line number Diff line number Diff line change @@ -814,8 +814,7 @@ globalThis.Iterator.from ??= function (object) {
814
814
return toIterable.call(iteratorFactory .call (object ));
815
815
}
816
816
817
- // eslint-disable-next-line no-prototype-builtins
818
- if (iteratorPrototype .isPrototypeOf (object )) {
817
+ if (Object .prototype .isPrototypeOf .call (iteratorPrototype , object )) {
819
818
return toIterable.call(object );
820
819
}
821
820
@@ -1999,8 +1998,7 @@ declare global {
1999
1998
return toIterable.call(iteratorFactory .call (object ));
2000
1999
}
2001
2000
2002
- // eslint-disable-next-line no-prototype-builtins
2003
- if (iteratorPrototype .isPrototypeOf (object )) {
2001
+ if (Object .prototype .isPrototypeOf .call (iteratorPrototype , object )) {
2004
2002
return toIterable.call(object as Iterator <T >);
2005
2003
}
2006
2004
You can’t perform that action at this time.
0 commit comments