MCPcopy Create free account
hub / github.com/microsoft/SandDance / repeatString

Function repeatString

docs/app/js/sanddance-app.js:22094–22098  ·  view source on GitHub ↗
(target, count)

Source from the content-addressed store, hash-verified

22092 return hasProps ? serialized.join("") : undefined;
22093}
22094function repeatString(target, count) {
22095 if (count <= 0) return "";
22096 if (count === 1) return target;
22097 return target + repeatString(target, count - 1);
22098}
22099function serializeRuleEntries(options, ruleEntries) {
22100 if (!ruleEntries) return "";
22101 var allEntries = [];

Callers 1

applyRegistrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected