@cw-pkg/agenda-is-avaliable
This package can change any time. Please only use if you are the ETC.Digital team.
How to use
import AgendaIsAvaliable from "@cw-pkg/agenda-is-avaliable"
// You have this "data"
export const sendData = [
{ id: '77', begin: 10800, end: 10830 },
{ id: '79', begin: 10830, end: 10845 },
{ id: '78', begin: 10900, end: 11030 },
{ id: '37', begin: 11045, end: 11115 },
];
// So, if you check the 08:45 - 09:00 is avaliable, just
AgendaIsAvaliable(sendData, 10845, 10900)
// Add the number 1 on start of number, just to normalize 1130 with 830.