This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Untidy MVP | |
const bracketsParser = (string) => { | |
console.log(`== STRING: ${string}`); | |
const arr = string.split(''); | |
const openingBracketsStack = []; | |
const openingBrackets = ['(', '[', '{']; | |
const closingBrackets = [')', ']', '}']; | |
if (arr.length % 2 === 1) { |