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
Alex Bruno Cáceres edited this page Mar 2, 2023
·
1 revision
Useful methods to deal with objects.
getPropertyValue
Gets the value of a deep property path in a given object or returns a default value if it doesn't exist.
If a default value is not provided, undefined is returned by default.
This is exactly the same as lodash.get(object, path, value) but this is made with cleaner, smarter, modern vanilla JS native code, and no bloat imports like the lodash method.