@r47onfire/nebula - v0.0.0
    Preparing search index...

    Function assignPath

    • Set obj into val at the location named by path, possibly mutating val in place, and return the new val.

      Every element of path but the last indexes into an existing value; the last names the property that is assigned. Nothing is created along the way, so the intermediate containers must already exist. An empty path assigns nothing and simply returns obj in place of the whole value.

      This is the write half of CompileBuilder.tbc: each entry pairs a child node with the path its compiled value belongs at in the handler's template.

      Type Parameters

      • T
      • const P extends readonly PropertyKey[]

      Parameters

      Returns T