From eaf714dd8af5d86b2fb5aac031693a6aa51b83d8 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 8 Oct 2023 16:58:10 +0200 Subject: infra(unicorn): prefer-array-flat-map (#2446) --- scripts/apidoc/diff.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 { function allKeys( ...entries: ReadonlyArray> ): Set { - return new Set(entries.map(Object.keys).flat()); + return new Set(entries.flatMap(Object.keys)); } /** -- cgit v1.2.3