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:
parent
183e21a3ac
commit
fcaa5724b4
@ -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> {
|
export function propsValues(props: Record<string, unknown>, exclude: string[] = []): Record<string, unknown> {
|
||||||
const values: Record<string, unknown> = {}
|
const values: Record<string, unknown> = {}
|
||||||
Object.entries(props).forEach(([key, value]) => {
|
Object.entries(props).forEach(([key, value]) => {
|
||||||
if (!exclude || (exclude && !exclude.includes(key))) {
|
if (!exclude || !exclude.includes(key)) {
|
||||||
values[key] = value
|
values[key] = value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user