Skip to content

Commit 63403d4

Browse files
authoredSep 18, 2023
Simplify array.from+map (#246)
1 parent 77887a5 commit 63403d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/PrincipalFactory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ export class PrincipalFactory {
7676
}
7777

7878
public getPrincipals() {
79-
return Array.from(this.principals).map(p => p.principal);
79+
return Array.from(this.principals, p => p.principal);
8080
}
8181
}

0 commit comments

Comments
 (0)
Please sign in to comment.