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 } })