Function useEntries

  • Get entries as array from reactive collection.

    Type Parameters

    • TKey = unknown
    • TValue = unknown

    Returns undefined | [TKey, TValue][]

    Entries as array from the reactive collection, or undefined if no collection provided.

  • Get entries as array from reactive collection.

    Type Parameters

    • TKey
    • TValue

    Parameters

    • col: ReadonlyVal<{
          entries(): Iterable<[TKey, TValue]>;
      }> | {
          $: ReadonlyVal<{
              entries(): Iterable<[TKey, TValue]>;
          }>;
      }

      A Reactive Collection or a ReadonlyVal of Collection.

    • Optional eagerOrConfig: boolean | ValConfig<[TKey, TValue][]>

    Returns [TKey, TValue][]

    Entries as array from the reactive collection.

  • Get entries as array from reactive collection.

    Type Parameters

    • TKey
    • TValue

    Parameters

    • Optional col: ReadonlyVal<{
          entries(): Iterable<[TKey, TValue]>;
      }> | {
          $: ReadonlyVal<{
              entries(): Iterable<[TKey, TValue]>;
          }>;
      }

      An optional Reactive Collection or a ReadonlyVal of Collection.

    • Optional eagerOrConfig: boolean | ValConfig<[TKey, TValue][]>

    Returns undefined | [TKey, TValue][]

    Entries as array from the reactive collection, or undefined if no collection provided.