@n3okill/utils
Version:
Many javascript helpers
16 lines • 616 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.balancedCounter = balancedCounter;
const toString_1 = require("../string/toString");
const balancedCounter_1 = require("../string/balancedCounter");
/**
* Check if the number of occurrences of the 'open' string are the same of ths 'close' string in the input string
* @param input
* @param open
* @param close
* @returns
*/
function balancedCounter(input, open = "{", close = "}") {
return (0, balancedCounter_1.balancedCounter)((0, toString_1.toString)(input), open, close);
}
//# sourceMappingURL=balancedCounter.js.map
;