1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

remove uneeded condition

This commit is contained in:
Kevin Levron 2021-05-05 22:44:02 +02:00
parent 183e21a3ac
commit fcaa5724b4

View File

@ -56,7 +56,7 @@ export function bindProp(src: any, srcProp: string, dst: any, dstProp?: string):
export function propsValues(props: Record<string, unknown>, exclude: string[] = []): Record<string, unknown> {
const values: Record<string, unknown> = {}
Object.entries(props).forEach(([key, value]) => {
if (!exclude || (exclude && !exclude.includes(key))) {
if (!exclude || !exclude.includes(key)) {
values[key] = value
}
})