코드가 하는 일을 읽고, 가려진 빈칸에 직접 이름을 지어 넣으세요. 빈칸 폭이 원본 이름의 글자 수입니다.
1 = (obj) => { 2 if (!Object.isExtensible(obj)) { 3 return false; 4 } 5 6 const props = Object.getOwnPropertyNames(obj); 7 8 if (Object.getOwnPropertySymbols) { 9 props.push(...Object.getOwnPropertySymbols(obj)); 10 } 11 12 return props.every((prop) => { 13 if (isUnsafeObjectKey(prop)) { 14 return false; 15 } 16 17 const descriptor = Object.getOwnPropertyDescriptor(obj, prop); 18 19 return !!descriptor && descriptor.configurable && descriptor.writable === true; 20 }); 21}