MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / getWeekdayName

Function getWeekdayName

tests/helpers/feriados/index.js:41–53  ·  view source on GitHub ↗
(dateString)

Source from the content-addressed store, hash-verified

39];
40
41const getWeekdayName = (dateString) => {
42 const weekdays = [
43 'domingo',
44 'segunda-feira',
45 'terça-feira',
46 'quarta-feira',
47 'quinta-feira',
48 'sexta-feira',
49 'sábado',
50 ];
51 const date = new Date(dateString + 'T12:00:00');
52 return weekdays[date.getDay()];
53};
54
55const getEasterHolidays = (year, holidaysName = easterHolidaysName) =>
56 [

Callers 2

getEasterHolidaysFunction · 0.70
getFixedHolidaysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected