UNPKG

string-differ

Version:

A Javascript library to compare and transform strings.

17 lines 532 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CharOperationsHelper = void 0; const CharOperationsHelper = () => { const operations = []; function addOperation(type, value) { if (type && value !== undefined) { operations.push({ type, value }); } } function getOperations() { return operations.reverse(); } return { addOperation, getOperations }; }; exports.CharOperationsHelper = CharOperationsHelper; //# sourceMappingURL=char.js.map