Function set

  • Deeply set a value in object at given indices using maps for new path creation

    Date

    3/14/2023 - 12:23:06 PM

    Export

    Returns

    Example

    const tile = set(new Map(), [0, 1, 2], sprite)
    

    Type Parameters

    • T

    Parameters

    • obj: Map<number, any>
    • indices: number[]
    • value: T

    Returns T

Generated using TypeDoc