title: Expected 2 arguments, but got 1.
body: <p>I have function in ts</p>
  
  <pre><code> export function minutesToHoursAndMinutes(m, zeroPadded) {
      if (zeroPadded == null) { zeroPadded = false; }
      let hours:any = Math.floor(m / 60);
      if (zeroPadded &amp;&amp; (`${hours}`.length === 1)) { hours = `0${hours}`; }
      let minutes:any = m % 60;
      if (zeroPadded &amp;&amp; (`${minutes}`.length === 1)) { minutes = `0${minutes}`; }
      if ((hours === 24) &amp;&amp; (minutes === '00')) {
        hours = 23;
        minutes = 59;
      }
      return [hours, minutes];
    };
  </code></pre>
  
  <p>And try to use it like this</p>
  
  <pre><code>if (("#t-time-range").length &gt; 0) {
  $("#t-time-range").slider({
    range: "min",
    value: filter_max.max_traveltime,
    min: filter_max.min_traveltime,
    max: filter_max.max_traveltime+15,
    step: 15,
    slide(event, ui) {
      const hms = FilterFunctions.minutesToHoursAndMinutes(ui.value );
      $("#t-time").val(`Max ${hms[0]}t ${hms[1]}m`);
      return $('#filter_travel_time').val(ui.value);
    }
  });
  const hms = FilterFunctions.minutesToHoursAndMinutes($("#t-time-range").slider("value"));
  $("#t-time").val(`Max ${hms[0]}t ${hms[1]}m`);
  $('#filter_travel_time').val($("#t-time-range").slider("value"));
  </code></pre>
  
  <p>}</p>
  
  <p>But I have error about argues</p>
  
  <p>Like this </p>
  
  <blockquote>
    <p>Expected 2 arguments, but got 1. </p>
  </blockquote>
  
  <p>How I can make 2 argument optional?</p>