Skip to content

jonex2/is-mergeable-object

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%