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.
stateRemove
stateRemoveWhere
const myList = state([1, 2, 3, 4]);stateRemove(myList, 2); // Removes the item with value 2 Copy
const myList = state([1, 2, 3, 4]);stateRemove(myList, 2); // Removes the item with value 2
Generated using TypeDoc
stateRemove
removes a specific item from a reactive list. It finds the index of the item in the list and callsstateRemoveWhere
to remove it.