Public
Script
October 23, 2023
1
2
3
4
5
6
7
export async function getEmojis(num, isRandom = false) {
const { default: emojis } = await import("npm:emojis-list");
if (isRandom) {
return emojis.sort(() => Math.random() - 0.5).slice(0, num);
}
return emojis.slice(0, num);
}
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