# isObject [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] > Test if a value is an object.
## Installation ```bash npm install @stdlib/assert-is-object ```
## Usage ```javascript var isObject = require( '@stdlib/assert-is-object' ); ``` #### isObject( value ) Tests if a `value` is an `object`. ```javascript var bool = isObject( {} ); // returns true bool = isObject( true ); // returns false ```
## Notes - The function returns `false` if provided an `array` or `null`. ```javascript var bool = isObject( [] ); // returns false bool = isObject( null ); // returns false ```
## Examples ```javascript var isObject = require( '@stdlib/assert-is-object' ); var bool = isObject( {} ); // returns true bool = isObject( new Date() ); // returns true bool = isObject( /.*/ ); // returns true bool = isObject( null ); // returns false bool = isObject( [] ); // returns false ```
* * * ## Notice This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. #### Community [![Chat][chat-image]][chat-url] --- ## License See [LICENSE][stdlib-license]. ## Copyright Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].