Skip to content

Instantly share code, notes, and snippets.

View fromtexas's full-sized avatar
💭
🐑💨

Oleg Veskelen fromtexas

💭
🐑💨
View GitHub Profile
var validString = (string) => {
var myString = string ? string.replace(/[^\[\]\(\)\{\}]/g,'') : '';
if(!myString){
console.log(true);
return true;
}
var tokens = [ ['{','}'] , ['[',']'] , ['(',')'] ];