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: about 1 year ago
JSON representation
Determine if a value is object like.
- Host: GitHub
- URL: https://github.com/xotic750/is-object-like-x
- Owner: Xotic750
- License: mit
- Created: 2015-12-11T21:09:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:50:54.000Z (over 3 years ago)
- Last Synced: 2025-04-30T20:31:52.546Z (about 1 year ago)
- Topics: browser, ecmascript, isobjectlike, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.28 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
```