강의

멘토링

로드맵

Inflearn Community Q&A

dante's profile image
dante

asked

Creating NodeBird SNS with React

5-12. Passport summary and actual login

filteredUser = Object.assign() 을 이용한 이유가 궁금합니다.

Written on

·

239

0

안녕하세요? 강의 잘 듣고 있습니다. 
backend 서버 routres/index.js 에서 
const filteredUser = Object.assign({}, user.toJSON()); 

해당 코드에서 Object.assign() 함수를 사용하는 이유가 궁금합니다! 

reactjavascript

Answer 1

0

zerocho님의 프로필 이미지
zerocho
Instructor

사용자 객체를 얕은복사하기 위함입니다.

dante's profile image
dante

asked

Ask a question