Is there anyway to to “Template-like” check if there are missing or wrong values in an Object in JS?

前端 未结 0 1646
旧时难觅i
旧时难觅i 2020-12-02 15:38

I\'m receiving data from an API (one JS Object each time) and want to check if any of the values in there is missing or of the wrong datatype.
Is it possible to define

相关标签:
回答
  • 消灭零回复
提交回复
热议问题