title: I have a function that I want to use to separate data into lists using this boolean function
body: <pre><code>function date_is_in_the_future(dateAdd){
      // turn '2018-01-01' from a string to an object
      input_date_object = new Date(dateAdd);
      // Get todays date as an object
      today_date = new Date();
      // if the inpute_date_object is bigger than today_date, it will return false
      boolean_result = input_date_object &gt; today_date;
      // return result 
      return boolean_result;
  }
  </code></pre>
  
  <p>What do I have to do to this function in order to use it in my JavaScript?</p>