title: How to search for a particular matching property value inside an array of objects?
body: <p>I want to search only in <code>name</code> property of the list of json objects. This is the json array - </p>
  
  <pre><code>combinedArr = [
    {
      lat: "36.1152",
      locality: "Worth Avenue, Unit A",
      long: "117.521",
      name: "Bazaar Cafe",
      postal_code: "20619",
      street_no: "45250",
    },
    {
      lat: "31.21",
      locality: "Ambey Mantion",
      long: "119.7",
      name: "Ashley's Cafe",
      postal_code: "29087",
      street_no: "1B",
    },
  ];
  </code></pre>
  
  <p>This is the search function , this search function search in all properties of the objects but I just want it to search only in <code>name</code> property and return list of search results. The search function is the following -</p>
  
  <pre><code>  function findCaliforniaCafes(searchTerm) {
      const filterByValue = (combinedArr, string) =&gt; {
        return combinedArr.filter((o) =&gt;
          Object.keys(o).some((k) =&gt;
            o[k].toLowerCase().includes(string.toLowerCase())
          )
        );
      };
  
      const result = searchTerm
        ? filterByValue(combinedArr, searchTerm)
        : combinedArr;
  
      return result;
    }
  </code></pre>