brucekong

Results 2 comments of brucekong

let str='红蓝蓝黄红黄蓝红红黄红'; function getColors(color){ return str.match(eval("/"+color+'/g')); }; let result=getColors('黄').concat(getColors('红')).concat(getColors('蓝')).join(''); ![image](https://user-images.githubusercontent.com/7325154/64164103-15939600-ce75-11e9-935d-5f18ebca7981.png)

> Is there a solution when i use node which version is 14? the same question.