add support for only checking attributes in isActive
This commit is contained in:
6
packages/core/src/utils/objectIncludes.ts
Normal file
6
packages/core/src/utils/objectIncludes.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export default function objectIncludes(object1: { [key: string ]: any }, object2: { [key: string ]: any }): boolean {
|
||||
return !!Object
|
||||
.keys(object2)
|
||||
.filter(key => object2[key] === object1[key])
|
||||
.length
|
||||
}
|
||||
Reference in New Issue
Block a user