인프런 커뮤니티 질문&답변
Set 이용
작성
·
185
0
강사님 이렇게 풀어도 되나요??
 function solution(s){  
                let answer;
                answer = Array.from(new Set(str))
                return answer;
            }
            let str=["good", "time", "good", "time", "student"];
            console.log(solution(str));






