import { shallowCompare } from '@daffodil/core'
Shallow compares two objects using a list of provided property keys to enumerate the values.
null and undefined are considered equal for the purposes of the comparison.
A strict equality comparison is used for truthy property values.
function shallowCompare<T>(
obj1: T
obj2: T
props: (T extends T ? keyof T : never)[]
): boolean
| Parameter | obj1: T |
|---|---|
| Description |
| Parameter | obj2: T |
|---|---|
| Description |
| Parameter | props: (T extends T ? keyof T : never)[] |
|---|---|
| Description |