unclechu / node-deep-extend

Recursive extend module
MIT License
202 stars 53 forks source link

Handle null/undefined arguments #34

Closed dirchev closed 7 years ago

dirchev commented 7 years ago

This PR introduces the ability to properly handle null and undefined values as 2nd or later argument.

It filters the arguments, removing all, that are either null or undefined. Loose type comparison arg !== null is used. It works both for null and undefined, but returns false for arg = false

See MDN page

unclechu commented 7 years ago

@dirchev solved by PR#29. Released in v0.4.2.