goliatone / gkeypath

Simple keypath module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace hasOwnProperty, doesnt work in all cases

goliatone opened this issue · comments

Line #73, change to:

if (target[p] !== undefined) target = target[p];

As it stands it fails with proxied objects:

let store = Keypath.get(app, 'config.dashboard.session.store',  {});

store would always be default value {}.