Function get

  • Deeply get a value from a map at given indicies path. If setIfNull is provided, new maps will be used for path creation and the value will be set.

    Date

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

    Export

    Returns

    Example

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

    Type Parameters

    • T

    Parameters

    • map: Map<number, any>
    • indices: number[]
    • Optional setIfNull: T

    Returns T | undefined

Generated using TypeDoc