From 8f19e7054b00fb58a86a9c422259e713b1024e65 Mon Sep 17 00:00:00 2001 From: Mikhail Bodrov Date: Mon, 18 Sep 2023 16:41:22 +0300 Subject: [PATCH] Simplify array.from+map --- src/PrincipalFactory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PrincipalFactory.ts b/src/PrincipalFactory.ts index 87e37601e..0f74e355d 100644 --- a/src/PrincipalFactory.ts +++ b/src/PrincipalFactory.ts @@ -76,6 +76,6 @@ export class PrincipalFactory { } public getPrincipals() { - return Array.from(this.principals).map(p => p.principal); + return Array.from(this.principals, p => p.principal); } }