title: How can i use Array includes() Method to check value exist in array?
body: <p>I have the following code which get all the data in kendo grid column <code>Type</code>. how can I check if array contain <code>Type ='Custom Document'</code>?</p>
  <p>I tried the following</p>
  <pre><code>function chkCustomDocumentIncluded() {
      var messageText = '';
  
      var arrayType = [];
      var data = $(&quot;#CustomDocumentsGrid&quot;).data(&quot;kendoGrid&quot;).dataSource._data;
      for (i = 0; i &lt; data.length; i++) {
          arrayType.push(data[i].Type);          
      }       
      if (arrayType.includes(&quot;Custom SBA&quot;)) {
          messageText = '@Localizer[&quot;Custom document is required&quot;].Value';
      }
  
      return messageText;
  }
  </code></pre>
  <p><code>console.log(arrayType)</code> returns expected value but how can i add a condition to check the value exist?</p>