Function useValues

  • Get values as array from reactive collection.

    Type Parameters

    • TValue = unknown

    Returns undefined | TValue[]

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

  • Get values as array from reactive collection.

    Type Parameters

    • TValue

    Parameters

    • col: ReadonlyVal<{
          values(): Iterable<TValue>;
      }> | {
          $: ReadonlyVal<{
              values(): Iterable<TValue>;
          }>;
      }

      A Reactive Collection or a ReadonlyVal of Collection.

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

      ValConfig of Val or just the eager. Default true.

    Returns TValue[]

    Values as array from the reactive collection.

  • Get values as array from reactive collection.

    Type Parameters

    • TValue

    Parameters

    • Optional col: ReadonlyVal<{
          values(): Iterable<TValue>;
      }> | {
          $: ReadonlyVal<{
              values(): Iterable<TValue>;
          }>;
      }

      An optional Reactive Collection or a ReadonlyVal of Collection.

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

      ValConfig of Val or just the eager. Default true.

    Returns undefined | TValue[]

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