@spartacus/schematics
Version:
Spartacus schematics
14 lines • 393 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseCSV = void 0;
function parseCSV(raw, defaultValues = []) {
if (!raw) {
return defaultValues.map((x) => `'${x}'`).join(', ');
}
return raw
.split(',')
.map((x) => `'${x}'`)
.join(', ');
}
exports.parseCSV = parseCSV;
//# sourceMappingURL=transform-utils.js.map