37 lines
778 B
Markdown
37 lines
778 B
Markdown
# isobject [](http://badge.fury.io/js/isobject)
|
|
|
|
> Returns true if the value is an object and not an array or null.
|
|
|
|
## Install
|
|
Install with [npm](npmjs.org):
|
|
|
|
```bash
|
|
npm i isobject --save
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
var isObject = require('isobject');
|
|
console.log(isObject(null));
|
|
//=> 'false'
|
|
console.log(isObject([]));
|
|
//=> 'false'
|
|
console.log(isObject({}));
|
|
//=> 'true'
|
|
```
|
|
|
|
## Author
|
|
|
|
**Jon Schlinkert**
|
|
|
|
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
|
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
|
|
|
## License
|
|
Copyright (c) 2014 Jon Schlinkert, contributors.
|
|
Released under the MIT license
|
|
|
|
***
|
|
|
|
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 22, 2014._ |