Search/Javascript (2) 썸네일형 리스트형 json에서 key 값이 존재 하는지 확인 const object_1 = { test_1:'test 1' } console.log( object_1.hasOwnProperty('test_1') ) // true console.log( object_1.hasOwnProperty('test_2') ) // false const object_2 = { test_1:'test 1', test_2:undefined } console.log( object_2.hasOwnProperty('test_1') ) // true console.log( object_2.hasOwnProperty('test_2') ) // true ㅇ key in Object 최근 자바스크립트 기본을 다시 다지기 위해 읽는 사이트에 예제가 있었다. 기본도 못하고 있다는 생각이 들어버렸.. https://ko.javascript.info/ 모던 JavaScript 튜토리얼 모던 JavaScript 튜토리얼은 상세한 설명과 함께 JavaScript 기본 개념 및 고급 개념을 다룹니다 이전 1 다음