• Preparing search index...
  • The search index is not available
@refinio/one.models
  • @refinio/one.models
  • utils/MapUtils
  • getOrCreate

Function getOrCreate

  • getOrCreate<M>(map, k, v): MapValueType<M>
  • This function returns a map entry or v that is added to the map.

    Type Parameters

    • M extends Map<any, any>

    Parameters

    • map: M
    • k: MapKeyType<M>
    • v: MapValueType<M> | (() => MapValueType<M>)

    Returns MapValueType<M>

    • Defined in utils/MapUtils.ts:11

Settings

Member Visibility
@refinio/one.models
  • Loading...

Generated using TypeDoc