Gets a value from a nested structure via "dot-notation". Returns undefined if the path does not exist.
undefined
the object to search
the dot-notation path to search for
the value at the path or undefined if not found
import { getIn } from "@trashpanda001/helpers/object"getIn({a: {b: {c: 42 }}}, "a.b.c")// 42 Copy
import { getIn } from "@trashpanda001/helpers/object"getIn({a: {b: {c: 42 }}}, "a.b.c")// 42
Gets a value from a nested structure via "dot-notation". Returns
undefined
if the path does not exist.