@n3okill/utils
Version:
Many javascript helpers
15 lines • 541 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.balanced = balanced;
const getBalanced_1 = require("./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[][]}
*/
function balanced(input, open = "{", close = "}") {
return (0, getBalanced_1.getBalanced)(input, open, close);
}
//# sourceMappingURL=balanced.js.map
;