Function asMap

  • Returns a reactive Map-like view of the given object.

    The input must be a plain object or an observable object.

    Type Parameters

    • V

      The type of the values in the object.

    Parameters

    • data: Record<string, V>

      The plain or observable object to wrap as a Map.

    Returns Map<string, V>

    A Map-like view of the object.