UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

16 lines 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.prefixLines = prefixLines; exports.lastJoin = lastJoin; function prefixLines(line, prefix) { return line.split('\n').map(l => `${prefix}${l}`).join('\n'); } function lastJoin(elements, join, lastjoin) { if (elements.length <= 1) { return elements.join(lastjoin); } else { return elements.slice(0, -1).join(join) + lastjoin + elements[elements.length - 1]; } } //# sourceMappingURL=doc-general.js.map