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

Function isEqual

services/pix/participants.js:11–17  ·  view source on GitHub ↗
(requiredHeaders, headers)

Source from the content-addressed store, hash-verified

9const buildDate = (now = getNow()) => formatDate(now.toDate(), 'YYYYMMDD');
10
11function isEqual(requiredHeaders, headers) {
12 if (!Array.isArray(requiredHeaders) || !Array.isArray(headers)) {
13 return false;
14 }
15 const headerSet = new Set(headers);
16 return requiredHeaders.every((h) => headerSet.has(h));
17}
18
19export const getPixParticipants = async (fromToday = true, daysBefore = 1) => {
20 const date = fromToday

Callers 1

formatCsvFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected