title: Check if a week is between two weeks
body: <p>I want to return true if a week is between two weeks. I.e., the period is week 48 (2021) to week 3 (2022). I then want to return true if a week is in between.</p>
  <p>Lesson week and year is what I'm checking is inbetween. Start week &amp; year and end week &amp; year is the period.</p>
  <p>My code below doesn't work for the example (week 48 2021 -&gt; week 3 2022)</p>
  <p>I'd rather not convert to Date objects but if it's needed I will.</p>
  <pre><code>const isSamePeriod = (
    lessonWeek,
    lessonYear,
    startWeek,
    startYear,
    endWeek,
    endYear
  ) =&gt; {
    if (lessonWeek &gt;= startWeek &amp;&amp; lessonYear === startYear) {
      if (lessonWeek &lt;= endWeek &amp;&amp; lessonYear === endYear) {
        return true;
      }
    }
    return false;
  };
  
  </code></pre>