twreporter-react
Version:
React-Redux site for The Reporter Foundation in Taiwan
35 lines (20 loc) • 600 B
Markdown
> Check if a value is an object
Keep in mind that array, function, regexp, etc, are objects in JavaScript.
See [`is-plain-obj`](https://github.com/sindresorhus/is-plain-obj) if you want to check for plain objects.
```
$ npm install --save is-obj
```
```js
var isObj = require('is-obj');
isObj({foo: 'bar'});
//=> true
isObj([1, 2, 3]);
//=> true
isObj('foo');
//=> true
```
MIT © [Sindre Sorhus](http://sindresorhus.com)