프로그래머스 - 코딩테스트 연습>코딩테스트 입문>암호 해독 function solution(cipher, code) { return cipher.split("").map((str, idx) => (idx + 1) % code === 0 ? str : "").filter(str => str !== "").join(""); } 공부/프로그래머스 2023.08.17