@nkeff/cardboard-js
    Preparing search index...

    Function stateRemove

    • stateRemove removes a specific item from a reactive list. It finds the index of the item in the list and calls stateRemoveWhere to remove it.

      Type Parameters

      • T

      Parameters

      Returns void

      const myList = state([1, 2, 3, 4]);
      stateRemove(myList, 2); // Removes the item with value 2