JSPM

is-mergeable-object

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 215524
  • Score
    100M100P100Q168302F
  • License MIT

Check whether or not a value is an object that makes sense to iterate over

Package Exports

  • is-mergeable-object

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-mergeable-object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-mergeable-object

The biggest difficulty deep merge libraries run into is figuring out which properties of an object should be recursively iterated over.

This module contains the algorithm used by deepmerge.

isMergeableObject(null) // => false

isMergeableObject({}) // => true

isMergeableObject(new RegExp('wat')) // => false

isMergeableObject(undefined) // => false

isMergeableObject(new Object()) // => true

isMergeableObject(new Date()) // => false