Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 703 Bytes

readme.md

File metadata and controls

31 lines (20 loc) · 703 Bytes

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

isMergeableObject(someReactElement) // => false