You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Likely broken by the inclusion of Array support. TBH I'm not sure if there's a better behaviour here - undefined could only really be stringified, which is super unintuitive. I'd kinda rather have it throw.
Activity
developit commentedon Jul 29, 2019
Likely broken by the inclusion of Array support. TBH I'm not sure if there's a better behaviour here - undefined could only really be stringified, which is super unintuitive. I'd kinda rather have it throw.
mikesherov commentedon Jul 29, 2019
I agree. So should the docs be updated?
lfre commentedon Feb 18, 2021
I ran across this recently in styled-system, and looked familiar. https://github.com/styled-system/styled-system/blob/6e00a16e0c53d865955c03df2d8d6ade8948bb2f/packages/core/src/index.js#L35
key = key && key.split ? key.split('.') : [key]seems to do the trick. thoughts @developit ?Aaronphy commentedon Mar 25, 2021
delve(undefined || {}, 'a.b.c') === undefined
I think adding a default obj will be ok.