mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 01:48:40 +00:00
Better array current test
This commit is contained in:
parent
c505dedb22
commit
78f385c8f6
|
|
@ -35,7 +35,7 @@
|
|||
continue;
|
||||
}
|
||||
|
||||
if(current === null) {
|
||||
if (typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
continue;
|
||||
}
|
||||
|
||||
if(current === null) {
|
||||
if(typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user