deleteTask
Script
v2
Fork
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
)
,
)
;
}