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

Function initializeOptions

codebase/sources/dhtmlxscheduler.js:18044–18056  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

18042 return __assign(__assign({}, val), { dtstart, tzid });
18043 }
18044 function initializeOptions(options) {
18045 var invalid = [];
18046 var keys = Object.keys(options);
18047 var defaultKeys2 = Object.keys(DEFAULT_OPTIONS);
18048 keys.forEach(function(key) {
18049 if (!includes(defaultKeys2, key))
18050 invalid.push(key);
18051 });
18052 if (invalid.length) {
18053 throw new Error("Invalid options: " + invalid.join(", "));
18054 }
18055 return __assign(__assign({}, DEFAULT_OPTIONS), options);
18056 }
18057 function extractName(line) {
18058 if (line.indexOf(":") === -1) {
18059 return { name: "RRULE", value: line };

Callers 1

rrulestrFunction · 0.70

Calls 2

includesFunction · 0.70
__assignFunction · 0.70

Tested by

no test coverage detected