stack

Home > @infiniteobjects/core-library > Assert > isObject

Assert.isObject() method

Checks if the given input is Object Like, You can use Generic types to assert an specific Type

Signature:

static isObject<T = ObjectLike>(obj: unknown): obj is T;

Parameters

Parameter Type Description
obj unknown  

Returns:

obj is T

Remarks

No actual check for the type assertion is done