title: Search JSON array for specific word
body: <p>trying to locate the word 'London' from a  generated JSON array entered from a user.</p>
  
  <p>response 200 (API example):</p>
  
  <pre><code>{
  "latitude": 52.24593734741211,
  "longitude": -0.891636312007904,
  "addresses":
  ["10 Watkin Terrace, , , , , Northampton, Northamptonshire",
  "12 Watkin Terrace, , , , , Northampton, Northamptonshire",
  </code></pre>
  
  <p>i wrote a function:</p>
  
  <pre><code> request.onload = function() {
  
  var data = JSON.parse(this.response);
  
  if(request.status &gt;= 200 &amp;&amp; request.status &lt; 400) {
    var city = data.addresses;
    var london = 'London';
     var check = city.includes(london);
      if(check) {
        console.log(city);
      } else {
        console.log('not in london');
         var show = document.getElementById('incorrect_postcode').style.visibility='visible'; 
  </code></pre>
  
  <p>I'm unsure if I misunderstand the API or if somethings wrong here... the statement is always false.</p>
  
  <p>Also tried for loop to search the length of the array to locate 'London', to no avail</p>
  
  <p>Thanks.</p>