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

    • state: State<T[]>
    • item: T

    Returns void

    Example

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

Generated using TypeDoc