FHIRClient - v3.0.0
    Preparing search index...

    Function setPath

    • Like getPath, but if the node is found, its value is set to the value param.

      Parameters

      • obj: Record<string, any>

        The object (or Array) to walk through

      • path: string

        The path (eg. "a.b.4.c")

      • value: any

        The value to set

      • createEmpty: boolean = false

        If true, create missing intermediate objects or arrays

      Returns Record<string, any>

      The modified object