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

Function repeat

codebase/sources/dhtmlxscheduler.js:15730–15741  ·  view source on GitHub ↗
(value, times)

Source from the content-addressed store, hash-verified

15728 return rang;
15729 };
15730 var repeat = function(value, times) {
15731 var i = 0;
15732 var array = [];
15733 if (isArray(value)) {
15734 for (; i < times; i++)
15735 array[i] = [].concat(value);
15736 } else {
15737 for (; i < times; i++)
15738 array[i] = value;
15739 }
15740 return array;
15741 };
15742 var toArray = function(item) {
15743 if (isArray(item)) {
15744 return item;

Callers 4

padStartFunction · 0.70
dhtmlxscheduler.jsFile · 0.70
rebuildYearFunction · 0.70
rebuildMonthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected