UNPKG

cbfl

Version:

library that can be used to automatically find points of failure in TypeScript Modules that are tested with Mocha

15 lines (14 loc) 499 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.concatStringSet = void 0; const concatStringSet = (stringSet, valueCallback = (inValue) => inValue, delimiter = ", ") => { let resultString = ""; const values = stringSet.values(); let next = values.next(); while (!next.done) { resultString += valueCallback(next.value) + delimiter; next = values.next(); } return resultString; }; exports.concatStringSet = concatStringSet;