JSPM

  • Created
  • Published
  • Downloads 5561
  • Score
    100M100P100Q127404F
  • License MIT

Determine if a value is object like.

Package Exports

  • is-object-like-x

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-object-like-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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