Returns a boolean for whether the type is strictly equal to an empty plain object, the {} value.
boolean
{}
import type {IsEmptyObject} from 'type-fest';type Pass = IsEmptyObject<{}>; //=> truetype Fail = IsEmptyObject<[]>; //=> falsetype Fail = IsEmptyObject<null>; //=> false Copy
import type {IsEmptyObject} from 'type-fest';type Pass = IsEmptyObject<{}>; //=> truetype Fail = IsEmptyObject<[]>; //=> falsetype Fail = IsEmptyObject<null>; //=> false
EmptyObject
Returns a
booleanfor whether the type is strictly equal to an empty plain object, the{}value.