title: Check if an item is array or not
body: <p>I have a data in the form of JS literal notation here. </p>
  
  <pre><code>data = {
      "Project": [
          {
              "Title": "Project1",
              "StartDate": "01/01/2013", 
              "EndDate": "01/07/2013",
              "Status": 1
          },
          {
              "Title": "Project2",
              "StartDate": "01/05/2013",
              "EndDate": "01/15/2013",
              "Status": 2
          }
  });
  
  
  var propV;
  function validate(data){
      for(var key in data){
          propV = data[key];
          if(typeof propV === 'array){
              //alert('array')
          }
          else if(type propV === 'date'){
              //alert('date')
          }
          else if(type propV === 'string'){
              //alert('string')
          }
          else if(type propV === 'object'){
              //alert('object')
          }
      }
  }
  </code></pre>
  
  <p>For the above code, I was expecting it show alert of an array. However, it alerts for object. What's used in JavaScript to detect if the item is an array or not?</p>
  
  <p>Similary, if I have a similar data as above, how would I detect if an item is date or not? For now, if I try to do that, I am getting dates also as <code>string</code></p>