https://github.com/nombrekeff/cardboard-js/wiki/ListState
const myList = listState([1, 2, 3]);
myList.add(4);
myList.addAt(0, 0);
myList.remove(2);
myList.removeWhere(item => item === 3);
const listValues = myList.listValue;
const listLength = myList.length;
// Listen to changes in the list
myList.list.changed(() => {
// List has changed
});
Generated using TypeDoc
listState
creates a reactive list of values that can be used with tags to manage dynamic and reactive apps. It wraps each item with an IConsumable