fume-fhir-converter
Version:
FHIR-Utilized Mapping Engine - Community
13 lines • 519 B
JavaScript
;
/**
* © Copyright Outburn Ltd. 2022-2024 All Rights Reserved
* Project name: FUME-COMMUNITY
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.calcBracketDiff = void 0;
// returns the diff between opening and closing parenthesis in a single line
const calcBracketDiff = (line) => {
return line.split('').filter(c => c === '(').length - line.split('').filter(c => c === ')').length;
};
exports.calcBracketDiff = calcBracketDiff;
//# sourceMappingURL=calcBracketDiff.js.map