Skip to content

isObject

Test if a value is an object.

Usage

js
import { isObject } from '@studiometa/js-toolkit/utils';

isObject({}); // true
isObject('foo'); // false

Parameters

  • value (any): the value to test

Return value

Returns true if the given value is an object, false otherwise.

MIT Licensed