[프로그래머스] 스킬트리 (javascript)

스킬에 포함되지 않은 단어들을 제거한 후 순서가 맞나 확인하면 된다 function solution(skill, trees) { var answer = trees.length; const newTrees=trees.map(tree=>{ return tree.split('').filter(x=>skill.includes(x)); }) for(let i=0;i