숫자만 추출

WooBuntu·2021년 2월 17일
0

JS 90제

목록 보기
9/33
const solution = string => parseInt(string.match(/[0-9]/g).join(''));

const result = solution('g0en2T0s8eSoft');
console.log(result);

0개의 댓글