We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2882208 commit f83f63fCopy full SHA for f83f63f
1 file changed
src/utils/object/GetValue.js
@@ -30,7 +30,7 @@ var GetValue = function (source, key, defaultValue)
30
{
31
return source[key];
32
}
33
- else if (key.indexOf('.'))
+ else if (key.indexOf('.') !== -1)
34
35
var keys = key.split('.');
36
var parent = source;
0 commit comments