@tempots/std

sameObjectKeys() function

Checks if two objects have the same keys.

Signature:

sameObjectKeys: extends object>(a: T, b: T) => boolean

Parameters

Parameter

Type

Description

a

T

The first object.

b

T

The second object.

Returns: boolean

true if both objects have the same keys, false otherwise.