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(''); 
> Is there a solution when i use node which version is 14? the same question.