Custom util to get weekday name or number
const getDayNameOrNo = (value) => {
const mappings = [
[0, "sunday"],
[1, "monday"],
[2, "tuesday"],
[3, "wednesday"],
[4, "thursday"],
[5, "friday"],
[6, "saturday"],
];
const match = mappings.find(
([dayNo, na...
codedrops.hashnode.dev1 min read