How do I check if an object has only one property or only two properties and no other property in javascript

后端 未结 0 937
旧巷少年郎
旧巷少年郎 2020-11-29 18:18

I want to check if an object has only one property or only two properties and no other property in javascript.

Suppose I have an object like this.

cons         


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