UNPKG

@n3okill/utils

Version:
9 lines (8 loc) 336 B
/** * 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 declare function balanced(input: string, open?: string, close?: string): boolean | number[][];