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.
See Question&Answers more detail:osvar obj = { "val1" : "test1", "val1" : "test1", "val1" : "test1", }