Skip to content

fx-flow v0.7.0 / pipe/strict / isObject

Function: isObject()

isObject<A>(args): args is Include&lt;A, object&gt;

Check whether args is an object.

Type parameters

A

Parameters

args: A

Returns

args is Include&lt;A, object&gt;

Example

typescript
isObject({}); // true
isObject([1, 2, 3]); // true
isObject(() => {}); // true
isObject(null); // false
isObject(123); // false

More examples

Source

packages/core/src/pipe/strict/isObject.ts:17

Released under the MIT License.