• Get keys as array from reactive collection.

    Type Parameters

    • TKey = unknown

    Returns undefined | TKey[]

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

  • Get keys as array from reactive collection.

    Type Parameters

    • TKey

    Parameters

    • col: ReadonlyVal<{
          keys(): Iterable<TKey>;
      }> | {
          $: ReadonlyVal<{
              keys(): Iterable<TKey>;
          }>;
      }

      A Reactive Collection or a ReadonlyVal of Collection.

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

    Returns TKey[]

    Keys as array from the reactive collection.

  • Get keys as array from reactive collection.

    Type Parameters

    • TKey

    Parameters

    • Optional col: ReadonlyVal<{
          keys(): Iterable<TKey>;
      }> | {
          $: ReadonlyVal<{
              keys(): Iterable<TKey>;
          }>;
      }

      An optional Reactive Collection or a ReadonlyVal of Collection.

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

    Returns undefined | TKey[]

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