is-object-like-x

2.1.2 • Public • Published

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

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

Package Sidebar

Install

npm i is-object-like-x

Weekly Downloads

5,277

Version

2.1.2

License

MIT

Unpacked Size

181 kB

Total Files

11

Last publish

Collaborators

  • xotic750