728x90
Javascript/개념 및 설명
-
Date 타입의 불변성이 보장 되어야 하는 이유Javascript/개념 및 설명 2024. 7. 6. 12:48
js-joda나 day.js나 date-fns 등은 immutable 불변성을 보장하여 날짜 및 시간 객체가 변경 불가능 하기 때문에 예기치 않은 오류를 예방 할 수 있다. Reference- https://d2.naver.com/helloworld/645609- https://unspecified.wordpress.com/2013/08/02/why-you-should-never-mutate-a-javascript-date/ - https://jojoldu.tistory.com/600
-