title: Filtering numbers out from an array
body: <p>I have an array like below and need to filter out the numbers from it ex: <code>[1,2]</code></p>
  
  <pre><code>var str = [
    "https://xx.jpg",
    "https://xx.jpg",
    "1",
    "https://guide.jpg",
    "2", 
    "/static.jpg"
  ]
  </code></pre>
  
  <p>I have the below code :</p>
  
  <pre><code>var filtered = str.filter(function(item) {
    return (typeof item === "number")
  });
  </code></pre>
  
  <p>but it is not filtering as it is a string.  </p>
  
  <p>How to do it?</p>