@n3okill/utils
Version:
Many javascript helpers
22 lines (21 loc) • 387 B
TypeScript
/**
* 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;