function addItem()

in src/actions/addItem.ts [13:22]


    function addItem(text: string) {
        Store.items.push({
            id: guid(),
            text: text,
            completed: false
        });

        Store.textboxValue = '';
        Store.itemsLeft = Store.itemsLeft + 1;
    };