1.0.0 • Published 6 months ago
chkparenthesis v1.0.0
chkparenthesis
chkparenthesis package is a module to check if brackets in a string are balanced.
Install
On terminal, write this command.
npm i chkparenthesis
usage
const checkBrackets = require('chkparenthesis');
console.log(checkBrackets("(a + b)")); // true
console.log(checkBrackets("{[a + b]}")); // true
console.log(checkBrackets("((a + b)")); // false
1.0.0
6 months ago