Answer the question
In order to leave comments, you need to log in
How to check the existence of an object?
Hello, how can I check for the existence of an object ??
I tried this code, it does not check for the existence of
if(Lister==undefined)
Answer the question
In order to leave comments, you need to log in
if(typeof Lister === 'undefined') {
// не существует
} else {
// cуществует
}
if(typeof Lister !== 'undefined') {
// существует
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question