Bagaimana cara memeriksa apakah ada objek dalam javascript
if (typeof maybeObject != "undefined") {
alert("GOT THERE");
}
Smiling Stoat
if (typeof maybeObject != "undefined") {
alert("GOT THERE");
}
car.hasOwnProperty('color')
if ('color' in car) {
}