diff options
| author | ST-DDT <[email protected]> | 2023-10-08 16:58:10 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-08 14:58:10 +0000 |
| commit | eaf714dd8af5d86b2fb5aac031693a6aa51b83d8 (patch) | |
| tree | d2eb9176c9d8c8d5b6c91eedb68de0970dfced29 /scripts | |
| parent | f1b44894edf2de88133ed40ac014499884ede7ba (diff) | |
| download | faker-eaf714dd8af5d86b2fb5aac031693a6aa51b83d8.tar.xz faker-eaf714dd8af5d86b2fb5aac031693a6aa51b83d8.zip | |
infra(unicorn): prefer-array-flat-map (#2446)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidoc/diff.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/apidoc/diff.ts b/scripts/apidoc/diff.ts index 654f44b0..18b8e60f 100644 --- a/scripts/apidoc/diff.ts +++ b/scripts/apidoc/diff.ts @@ -46,7 +46,7 @@ async function load(source: string): Promise<DocsApiDiffIndex> { function allKeys( ...entries: ReadonlyArray<Record<string, unknown>> ): Set<string> { - return new Set(entries.map(Object.keys).flat()); + return new Set(entries.flatMap(Object.keys)); } /** |
