UNPKG

@n3okill/utils

Version:
22 lines (21 loc) 387 B
/** * Check for a balanced use of 'open' and 'close' strings * * Examples: * * input: "{hello} world" * open: "{" * close: "}" * result: true * * * input: "hello} world" * open: "{" * close: "}" * result: false * @param input * @param open * @param close * @returns */ export declare function isBalanced(input: string, open?: string, close?: string): boolean;