Function getParent

  • Returns the parent object of the target object, or undefined if there's no parent.

    Type Parameters

    • T extends object = any

    Parameters

    • value: object

      Target object.

    Returns T | undefined

    T Parent object type.