Public
Script
1
2
3
4
5
6
7
8
9
let { hnFollowInterval } = await import("https://esm.town/v/dan/hnFollowInterval");
export let hnClear = async ({ id }) => {
if (id === hnFollowInterval) {
await clearInterval(id);
hnFollowInterval = undefined;
return "HN Follow Interval Cleared";
} else return "Invalid interval supplied or interval already cleared";
};
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