MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / _addDate

Function _addDate

codebase/sources/dhtmlxscheduler.es.js:18224–18232  ·  view source on GitHub ↗
(date, collection)

Source from the content-addressed store, hash-verified

18222 }
18223}
18224function _addDate(date, collection) {
18225 if (!(date instanceof Date)) {
18226 throw new TypeError(String(date) + " is not Date instance");
18227 }
18228 if (!includes(collection.map(Number), Number(date))) {
18229 collection.push(date);
18230 sort(collection);
18231 }
18232}
18233function rdatesToString(param, rdates, tzid) {
18234 var isUTC = !tzid || tzid.toUpperCase() === "UTC";
18235 var header = isUTC ? "".concat(param, ":") : "".concat(param, ";TZID=").concat(tzid, ":");

Callers 1

Calls 2

includesFunction · 0.70
sortFunction · 0.70

Tested by

no test coverage detected