This solution is incorrect as your regex doesn't match the word 'abc, it'll ignore the leading apostraphe. eg. topThreeWords("'ABC"); //=> ['abc']
'abc
topThreeWords("'ABC"); //=> ['abc']
Love the reducer/state machine style of MOVEMENTS on this.
Loading collection data...
This solution is incorrect as your regex doesn't match the word
'abc
, it'll ignore the leading apostraphe. eg.topThreeWords("'ABC"); //=> ['abc']
Love the reducer/state machine style of MOVEMENTS on this.