To check the JavaScript object has a value -
can tell me how check javascript object has value ? vm.occupantdetail.contactdetail
object neither null
nor undefined
.it looks shown below @ run time.
it defines shown below.
vm.occupantdetail = { contactdetail: {}, };
you can find using
object.keys(vm.occupantdetail.contactdetail).length
Comments
Post a Comment