Skip to content

Commit

Permalink
replaced this.data.length with this.nextIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
overthemike committed Oct 12, 2024
1 parent e9a0510 commit c64e9a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vanilla/utils/proxyMap-indexMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function proxyMap<K, V>(entries?: Iterable<[K, V]> | undefined | null) {
const k = maybeProxify(key)
if (!indexMap.has(k) && !isProxy(this)) {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
this.data.length
this.nextIndex
}
if (indexMap.has(k)) {
const index = indexMap.get(k)!
Expand All @@ -54,7 +54,7 @@ export function proxyMap<K, V>(entries?: Iterable<[K, V]> | undefined | null) {
const k = maybeProxify(key)
if (!indexMap.has(k) && !isProxy(this)) {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
this.data.length
this.nextIndex
}
return indexMap.has(k)
},
Expand Down

0 comments on commit c64e9a0

Please sign in to comment.