in 연산자는 객체 안에 속성이 포함되어 있는지 여부를 return 한다.
속성 in 객체;
// user의 속성에는 id, age, email, test이 있다 const user = { id: '2hanbyeol1', age: 24, email: '2hanbyeol1@naver.com', test: undefined; }; 'email' in user; // true 'name' in user; // false 'test' in user; // true - 값이 undefined여도
[MDN] in 연산자 - JavaScript