We can use Object.hasOwnProperty() function to check a particular key exist or not. let object1 = { 'id': 123, 'name': 'John' }; object1.
確定! 回上一頁