fx-flow v0.7.0 / pipe/strict / isObject
Function: isObject()
isObject<
A
>(args
):args is Include<A, object>
Check whether args
is an object.
Type parameters
• A
Parameters
• args: A
Returns
args is Include<A, object>
Example
typescript
isObject({}); // true
isObject([1, 2, 3]); // true
isObject(() => {}); // true
isObject(null); // false
isObject(123); // false