Public
Script
1
2
3
4
5
6
7
8
9
import { tasks } from "https://esm.town/v/ju2l0r/tasks";
import { set } from "https://esm.town/v/std/set?v=11";
export async function deleteTask(id) {
await set(
"tasks",
tasks.filter((t) => t.id !== id),
);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023