@trashpanda001/helpers
    Preparing search index...

    Function getIn

    • Gets a value from a nested structure via "dot-notation". Returns undefined if the path does not exist.

      Parameters

      • object: Readonly<unknown[] | Record<string, unknown>>

        the object to search

      • path: string

        the dot-notation path to search for

      Returns unknown

      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