mobx-bonsai
    Preparing search index...

    Function resolvePath

    • Tries to resolve a path from an object.

      Type Parameters

      • T extends object

        Returned value type.

      Parameters

      • pathRootNode: object

        Node that serves as path root.

      • path: readonly (string | number)[]

        Path as an string or number array.

      Returns { resolved: true; value: T } | { resolved: false; value?: undefined }

      An object with { resolved: true, value: T } or { resolved: false }.