re: Daily Challenge #103 - Simple Symbols VIEW POST

FULL DISCUSSION
 

Javascript:

acceptable = str => [...str].every((x, i, a) => x == '+' || x == '=' || (a[i - 1] == '+' && a[i + 1] == '+'))
code of conduct - report abuse