From fcaa5724b4fe2e4fa35633ccbb93bd055f251abe Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Wed, 5 May 2021 22:44:02 +0200 Subject: [PATCH] remove uneeded condition --- src/tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools.ts b/src/tools.ts index 15e9aa1..218d4f7 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -56,7 +56,7 @@ export function bindProp(src: any, srcProp: string, dst: any, dstProp?: string): export function propsValues(props: Record, exclude: string[] = []): Record { const values: Record = {} Object.entries(props).forEach(([key, value]) => { - if (!exclude || (exclude && !exclude.includes(key))) { + if (!exclude || !exclude.includes(key)) { values[key] = value } })