Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xotic750/is-object-like-x

Determine if a value is object like.
https://github.com/xotic750/is-object-like-x

browser ecmascript isobjectlike nodejs

Last synced: 2 months ago
JSON representation

Determine if a value is object like.

Awesome Lists containing this project

README

        


Travis status


Dependency status


devDependency status


npm version


jsDelivr hits


bettercodehub score


Coverage Status

## is-object-like-x

Determine if a value is object like.

### `module.exports(value)` ⇒ boolean

Checks if `value` is object-like. A value is object-like if it's not a
primitive and not a function.

**Kind**: Exported function
**Returns**: boolean - Returns `true` if `value` is object-like, else `false`.

| Param | Type | Description |
| ----- | --------------- | ------------------- |
| value | \* | The value to check. |

**Example**

```js
import isObjectLike from 'is-object-like-x';

console.log(isObjectLike({})); // => true
console.log(isObjectLike([1, 2, 3])); // => true
console.log(isObjectLike(_.noop)); // => false
console.log(isObjectLike(null)); // => false
```