Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/reactivity/src/arrayInstrumentations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const arrayInstrumentations: Record<string | symbol, Function> = <any>{
return reactiveReadArray(this).join(separator)
},

// keys() iterator only reads `length`, no optimisation required
// keys() iterator only reads `length`, no optimization required

lastIndexOf(...args: unknown[]) {
return searchProxy(this, 'lastIndexOf', args)
Expand Down Expand Up @@ -200,7 +200,7 @@ function iterator(
wrapValue: (value: any) => unknown,
) {
// note that taking ARRAY_ITERATE dependency here is not strictly equivalent
// to calling iterate on the proxified array.
// to calling iterate on the proxied array.
// creating the iterator does not access any array property:
// it is only when .next() is called that length and indexes are accessed.
// pushed to the extreme, an iterator could be created in one effect scope,
Expand Down
Loading