@s-libs/app-state
    Preparing search index...

    Function pushToStoreArray

    • Adds item to the end of the array in store. Returns a store object representing the newly added item.

      declare const store: Store<number[]>; // assume store starts with [1, 2]
      const added = pushToStoreArray(store, 3); // store has [1, 2, 3]
      added.set(17); // store has [1, 2, 17]

      Type Parameters

      • T

      Parameters

      Returns Store<T>