mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-24 01:17:50 +08:00
7 lines
219 B
TypeScript
7 lines
219 B
TypeScript
|
export default function objectIncludes(object1: { [key: string ]: any }, object2: { [key: string ]: any }): boolean {
|
||
|
return !!Object
|
||
|
.keys(object2)
|
||
|
.filter(key => object2[key] === object1[key])
|
||
|
.length
|
||
|
}
|