Skip to content

Commit 036e7ae

Browse files
committed
If property is undefined fall back to the default value.
1 parent bd8a2fa commit 036e7ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/utils/object/GetFastValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var GetFastValue = function (source, key, defaultValue)
1010
{
1111
return defaultValue;
1212
}
13-
else if (source.hasOwnProperty(key))
13+
else if (source.hasOwnProperty(key) && source[key] !== undefined)
1414
{
1515
return source[key];
1616
}

0 commit comments

Comments
 (0)