Better array current test

This commit is contained in:
Dennis Eichhorn 2017-12-30 12:06:45 +01:00
parent c505dedb22
commit 78f385c8f6
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
continue;
}
if(current === null) {
if (typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) {
return null;
}

View File

@ -35,7 +35,7 @@
continue;
}
if(current === null) {
if(typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) {
return null;
}