Readme
@jdan.flagOfSequence("gbsct")
// => ๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ
1
2
3
4
5
6
7
8
9
10
import { cancelTag } from "https://esm.town/v/jdan/cancelTag";
import { tagFromSmallLetter } from "https://esm.town/v/jdan/tagFromSmallLetter";
import { wavingBlackFlag } from "https://esm.town/v/jdan/wavingBlackFlag";
export const flagOfSequence = (str: string) =>
String.fromCodePoint(
wavingBlackFlag,
...str.split("").map(tagFromSmallLetter),
cancelTag,
);
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