diff --git a/Utils/ArrayUtils.js b/Utils/ArrayUtils.js index 32c4eaa..690e409 100644 --- a/Utils/ArrayUtils.js +++ b/Utils/ArrayUtils.js @@ -35,7 +35,7 @@ continue; } - if(current === null) { + if (typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) { return null; } diff --git a/Utils/oLib.js b/Utils/oLib.js index 21dbc87..423c7a8 100644 --- a/Utils/oLib.js +++ b/Utils/oLib.js @@ -35,7 +35,7 @@ continue; } - if(current === null) { + if(typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) { return null; }