let findItem={
    이름:"대검",
    데미지:10,
    부러진_무기:"반쪽 대검"
};
let Items={
    대검:{데미지:10,부러진_무기:"반쪽 대검"}
};

let same=true,data=Items[findItem.이름];
for(const i in findItem){
    if(i=="이름")continue;
    if(data[i]!=findItem[i])same=false;
}


if(same)console.log("수리 가능한 아이템 입니다")
else console.log("수리 불가능한 아이템 입니다")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: