is-object-like-x-2
v1.2.0
Published
ES6 isObjectLike module.
Downloads
1
Maintainers
Readme
is-object-like-x
ES6 isObjectLike module.
Version: 1.2.0
Author: Xotic750 [email protected]
License: MIT
Copyright: Xotic750
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
var isObjectLike = require('is-object-like-x');
isObjectLike({});
// => true
isObjectLike([1, 2, 3]);
// => true
isObjectLike(_.noop);
// => false
isObjectLike(null);
// => false