Answer the question
In order to leave comments, you need to log in
What is the correct way to check JSON for nested key?
For example, there is json
var a={
b:{
c:5
},
c: null
}
function ifEmty(data){
if (data == null || data == undefined){
return undefined
}else {
return data
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question