How can I compare adjecent string elements in an array - javascript?

后端 未结 0 945
温柔的废话
温柔的废话 2020-12-15 04:16

Given an array of strings, I\'d like to check for opposite directions and cancel them out (remove them from the array) and return a new array.

For example:

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题