1
2
3
4
5
6
7
8
9
10
import { emails } from "https://esm.town/v/eric/emails";
import { setEmails } from "https://esm.town/v/eric/setEmails";
import { getEmails } from "https://esm.town/v/eric/getEmails";
export let asyncSubscribe = async function() {
const s = await getEmails()
Array.from(arguments).forEach(x => s.add(x))
await setEmails(s)
return emails.length
}
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