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

Function split

codebase/sources/dhtmlxscheduler.js:15763–15766  ·  view source on GitHub ↗
(str, sep, num)

Source from the content-addressed store, hash-verified

15761 return padString.slice(0, targetLength) + String(str);
15762 }
15763 var split = function(str, sep, num) {
15764 var splits = str.split(sep);
15765 return num ? splits.slice(0, num).concat([splits.slice(num).join(sep)]) : splits;
15766 };
15767 var pymod = function(a, b) {
15768 var r = a % b;
15769 return r * b < 0 ? r + b : r;

Callers 1

extractNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected