Closed maxdeviant closed 7 years ago
This fixes a TypeError that is thrown when calling deepExtend with a null argument:
deepExtend
TypeError: Cannot convert undefined or null to object.
undefined was already handled, since typeof undefined is "undefined" and would skip the argument as a result.
undefined
typeof undefined
"undefined"
typeof null is "object", which was causing Object.keys(obj) to throw the TypeError.
typeof null
"object"
Object.keys(obj)
@maxdeviant merged and released with v0.4.2
v0.4.2
@unclechu Great! Thanks so much!
This fixes a TypeError that is thrown when calling
deepExtend
with a null argument:undefined
was already handled, sincetypeof undefined
is"undefined"
and would skip the argument as a result.typeof null
is"object"
, which was causingObject.keys(obj)
to throw the TypeError.