Function setPath$

  • Set value at path in a nested map.

    Type Parameters

    • K

    Parameters

    • x: Map<K, any>

      a nested map (updated)

    • p: K[]

      path

    • v: any

      value

    Returns Map<K, any>

    x | x[k₀][k₁][...] = v; [k₀, k₁, ...] = p

Generated using TypeDoc