-
Notifications
You must be signed in to change notification settings - Fork 32
Holidays
Greg Walker edited this page Jul 15, 2022
·
3 revisions
This utility originally included the getNextHoliday
utility currently found in
Dates, but as that one was created to include more date functionality, this
utility got shortened to just containing a map.
The emojis
object is a Map
linking official holiday names to potentially
appropriate Slack emojis.
Example:
const {
holidays: { emojis },
} = require("../utils");
emojis.get("Thanksgiving Day"); // returns ":turkey:"
emojis.get("Septober"); // returns undefined
Charlie developer documentation