| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b1c6a44 commit ec3e841
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | const { | |
| 4 | 4 | Array, | |
| 5 | + ArrayPrototypeIndexOf, | ||
| 5 | 6 | Symbol, | |
| 6 | 7 | } = primordials; | |
| 7 | 8 | ||
@@ -106,7 +107,7 @@ module.exports = class PriorityQueue { | |||
| 106 | 107 | ||
| 107 | 108 | remove(value) { | |
| 108 | 109 | const heap = this[kHeap]; | |
| 109 | - const pos = heap.indexOf(value); | ||
| 110 | + const pos = ArrayPrototypeIndexOf(heap, value); | ||
| 110 | 111 | if (pos < 1) | |
| 111 | 112 | return false; | |
| 112 | 113 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments