@n3okill/utils
Version:
Many javascript helpers
13 lines • 489 B
JavaScript
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