Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xotic750/is-object-like-x
- Owner: Xotic750
- License: mit
- Created: 2015-12-11T21:09:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:50:54.000Z (about 2 years ago)
- Last Synced: 2024-04-25T15:41:22.860Z (9 months ago)
- Topics: browser, ecmascript, isobjectlike, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.28 MB
- Stars: 1
- Watchers: 2
- 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
```