a better way to loop through an array of items

I have a model that looks as follows

this.Model

Model {class: undefined items: Array(0) tag: undefined launch: undefined length: undefined name: undefined Id: "de4d704a-b754-4546-b3ab-f0c131eba84a" time: "15:36" tonnage: undefined}

the only objects in the Model that will always have a value is Id and Time.

i have an if statement that goes through each off my objects to check if its null as follows:

    if ( this.Model.class == null && this.Model.name == null && this.Model.tag== null && this.Model.launch == null && this.Model.length == null && this.Model.tonnage == null && this.Model.items.length == 0) 
                {
                    //does something in here
                }

so i want to check if all the objects are null except time and ID, is there a better way of doing this than me using the above method in an if statement?

644 thoughts on “a better way to loop through an array of items”

  1. i need a loan direct lender, i need a large loan with bad credit. i need an emergency loan bad credit i need loan need a loan with bad credit i need a direct payday loan lender, cash advance loans direct lender no teletrack, cash advance loans, cash advance, cash advance loans for 1500. Bank is typically viewed money management, terms of credit.

    Reply
  2. [url=http://bestviagratabsbuyingonline.quest/]buy female viagra pills in india online[/url] [url=http://amitriptyline.cfd/]purchase of amitriptyline without a prescriton[/url] [url=http://genericcialismedicinewithnoprescription.quest/]buy cialis 10mg uk[/url] [url=http://canadianpharmacy.email/]canadian pharmacy antibiotics[/url] [url=http://viagragenericpillsforsaleonline.quest/]sildenafil 50 mg tablet coupon[/url]

    Reply