Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

hasNewPartialProps

hasNewPartialProps<T>(current, partial): boolean

Defined in: packages/sigma/src/utils/data.ts:42

Returns true if any own property of partial differs (strict equality) from the corresponding property in current. Uses for…in for speed and short-circuits on the first difference.

Type Parameters

T

T extends Record<string, unknown>

Parameters

current

T

partial

Partial<T>

Returns

boolean