Community

spread syntax 대신 structuredClone!

JavaScript 나 TypeScript를 사용할 때 흔히 spread syntax로 object를 복사하곤 합니다. 이 방법은 대게 문제가 없지만 nest object나 array를 포함하면 제대로 작동하지 않죠. 이때 structuredClone이 좋은 대안같네요!

알림

알림이 없습니다