title: How to filter array of object by current month in javascript
body: <p>I am using laravel and it's has created_at field timestamp.</p>
  
  <p>I want to sort the array of objects using the current month. </p>
  
  <p>My array looks like this</p>
  
  <pre><code>var arr = [{
    "id": 1,
    "user_id": 1,
    "roi": 90,
    "sport": "Biatlon",
    "created_at": "2017-12-29 11:42:40",
    "user": {
      "id": 1,
      "userName": "iamsadek",
      "profilePic": "90TyP1Rkn2WI4T5VQmqmJJPB5cAY8BMrUim1WJT0.png"
    }
  }, {
    "id": 5,
    "user_id": 2,
    "roi": 30,
    "sport": "Atletika",
    "created_at": "2018-01-10 22:20:06",
    "user": {
      "id": 2,
      "userName": "hkmsadek",
      "profilePic": "pic.png"
    }
  }, {
    "id": 4,
    "user_id": 5,
    "roi": 10,
    "sport": "Biatlon",
    "created_at": "2018-01-10 17:11:45",
    "user": {
      "id": 5,
      "userName": "deil",
      "profilePic": "L8KIW0gXXmi5QALnAHjksCdg4tcUK9cx5jn84nrk.jpeg"
    }
  }]
  </code></pre>
  
  <p>I want to sort this array by current month. </p>
  
  <p>Please help with any clue. I am currently trying to use lodash but it doesn't provide anything like this. </p>