title: How to check the type of an array?
body: <p>Is there a way to check what the array "type" is? for example</p>
  
  <p><code>Array&lt;string&gt;</code> means it is a collection of "string" type variables.</p>
  
  <p>so if i create a function</p>
  
  <pre><code>checkType(myArray:Array&lt;any&gt;){
    if(/*myArray is a collection of strings is true*/){
      console.log("yes it is")
    }else{
      console.log("no it is not")
    }
  }
  </code></pre>