[Refactor] Standardise code style - modern JS (#636)

Uses unicorn rules to auto-refactor code.  All verified.
This commit is contained in:
filtered
2025-02-28 00:13:32 +11:00
committed by GitHub
parent 6737828a2b
commit 97bf9de83a
8 changed files with 50 additions and 70 deletions

View File

@@ -25,7 +25,7 @@ export class MapProxyHandler<V> implements ProxyHandler<Map<number | string, V>>
}
ownKeys(target: Map<number | string, V>): ArrayLike<string | symbol> {
return [...target.keys()].map(x => String(x))
return [...target.keys()].map(String)
}
get(target: Map<number | string, V>, p: string | symbol): any {