Comment vérifier si l'objet existe en javascript
if (typeof maybeObject != "undefined") {
alert("GOT THERE");
}
Smiling Stoat
if (typeof maybeObject != "undefined") {
alert("GOT THERE");
}
car.hasOwnProperty('color')
if ('color' in car) {
}