chore: fix typo

This commit is contained in:
吴杨帆 2025-08-21 17:39:55 +08:00 committed by GitHub
parent 20b888bd59
commit cde15b07bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ export const arrayInstrumentations: Record<string | symbol, Function> = <any>{
return reactiveReadArray(this).join(separator) return reactiveReadArray(this).join(separator)
}, },
// keys() iterator only reads `length`, no optimisation required // keys() iterator only reads `length`, no optimization required
lastIndexOf(...args: unknown[]) { lastIndexOf(...args: unknown[]) {
return searchProxy(this, 'lastIndexOf', args) return searchProxy(this, 'lastIndexOf', args)
@ -200,7 +200,7 @@ function iterator(
wrapValue: (value: any) => unknown, wrapValue: (value: any) => unknown,
) { ) {
// note that taking ARRAY_ITERATE dependency here is not strictly equivalent // 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: // creating the iterator does not access any array property:
// it is only when .next() is called that length and indexes are accessed. // 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, // pushed to the extreme, an iterator could be created in one effect scope,