issue 다음과 같은 상태에서 tsconfig.json 파일 추가 시 아래와 같은 vue-router 에러 발생 solution yarn remove vue-router yarn add vue-router@3.5.3 참고: https://www.inflearn
왜 colors.slice()와 같이 의미없는 slice()를 뒤에 붙이는 걸까?문자열, 숫자, 불린을 제외한 객체는 다른 변수에 대입할 때 값을 복사하는 게 아니라 참조(메모리의 주소)를 복사한다.원본(colors)의 값까지 변하지 않게 하려고 colors.slice