title: Unable to loop through my postman response
body: <p>I have this json respone from postman
  I want to write a test to return failure if key "value" in the array is &lt; 50.</p>
  
  <p>It would loop through the array once the condition is not met it fails</p>
  
  <p>I have tried this</p>
  
  <pre><code>pm.test('Matches value', () =&gt; {
      _.each(pm.response.json(), (arrItem) =&gt; {
          if (arrItem.persID === 'personID_2') {
              throw new Error(`Array contains ${arrItem.persID}`)
          }
      })
  });
  </code></pre>
  
  <p>My response</p>
  
  <pre><code>{
    "groups": [
      {
        "title": "Maids",
        "subTitle": null,
        "description": null,
        "featured": false,
        "items": [
          {
            "id": "1",
            "title": "AA",
            "subTitle": "AA",
            "thumbnail": "AA",
            "priceStartingAt": {
              "value": 50,
              "baseCurrency": "USD",
              "exchangeEnabled": true,
              "exchangeRates": {
                "aed": 3.672973
              }
            },
            "categories": [
              "Activity"
            ]
          },
          {
            "id": "2",
            "title": "BB",
            "subTitle": "BB",
            "thumbnail": "BB",
            "priceStartingAt": {
              "value": 20.01,
              "baseCurrency": "USD",
              "exchangeEnabled": true,
              "exchangeRates": {
                "aed": 3.672973
              }
            },
            "categories": [
              "Activity"
            ]
          }
        ]
      }
    ]
  </code></pre>
  
  <p>In this case the test should fail because the value in the second array is 20.01</p>