Closed Packmanager9 closed 3 years ago
Given that the 'in' operator will throw an error error and fail: 'Cannot use 'in' operator to search for 'top' in 1'
A different method of deriving the key presence could be used.
Compare:
Original:
if (parent != undefined && parameterPathPart in parent) { parent = parent[parameterPathPart]; }
Proposed:
if (parent != undefined && Object.keys(parent).includes(parameterPathPart)) { parent = parent[parameterPathPart]; }
Wrong repo, sorry.
Given that the 'in' operator will throw an error error and fail: 'Cannot use 'in' operator to search for 'top' in 1'
A different method of deriving the key presence could be used.
Compare:
Original:
Proposed: