Skip to content

isObject

isObject(value): value is Record<string, unknown>

Type guard to check if a value is a non-null object Useful for narrowing unknown types from API responses

Parameter Type Description
value unknown The value to check

value is Record<string, unknown>

true if value is a non-null object