@n3okill/utils
Version:
Many javascript helpers
12 lines • 420 B
JavaScript
import { getBalanced } from "./getBalanced";
/**
* Returns 'false' if input string is unbalanced and an array of an array of numbers defining the begging and end of 'open' and 'close' strings
* @param input
* @param open
* @param close
* @returns {boolean | number[][]}
*/
export function balanced(input, open = "{", close = "}") {
return getBalanced(input, open, close);
}
//# sourceMappingURL=balanced.js.map