is-object-like-x
v2.1.2
Published
Determine if a value is object like.
Maintainers
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
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