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

Function _addRule

codebase/sources/dhtmlxscheduler.es.js:18216–18223  ·  view source on GitHub ↗
(rrule, collection)

Source from the content-addressed store, hash-verified

18214 return RRuleSet2;
18215}(RRule);
18216function _addRule(rrule, collection) {
18217 if (!(rrule instanceof RRule)) {
18218 throw new TypeError(String(rrule) + " is not RRule instance");
18219 }
18220 if (!includes(collection.map(String), String(rrule))) {
18221 collection.push(rrule);
18222 }
18223}
18224function _addDate(date, collection) {
18225 if (!(date instanceof Date)) {
18226 throw new TypeError(String(date) + " is not Date instance");

Callers 1

Calls 1

includesFunction · 0.70

Tested by

no test coverage detected