I have this code. I need to write a validation for this object. if any of the property is empty or not a string console log an error or console log a message.
var obj = {
"val1" : "test1",
"val1" : "test1",
"val1" : "test1",
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…