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

Function repeat

codebase/sources/dhtmlxscheduler.es.js:15726–15737  ·  view source on GitHub ↗
(value, times)

Source from the content-addressed store, hash-verified

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

Callers 4

padStartFunction · 0.70
rebuildYearFunction · 0.70
rebuildMonthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected