UNPKG

@n3okill/utils

Version:
13 lines 489 B
import { toString } from "../string/toString"; import { balancedCounter as balancedCounterString } from "../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 */ export function balancedCounter(input, open = "{", close = "}") { return balancedCounterString(toString(input), open, close); } //# sourceMappingURL=balancedCounter.js.map