Skip to content

Instantly share code, notes, and snippets.

@gotbahn
Created March 13, 2021 19:37
Show Gist options
  • Save gotbahn/c2e34879301cadd616c6a027ea3a982d to your computer and use it in GitHub Desktop.
Save gotbahn/c2e34879301cadd616c6a027ea3a982d to your computer and use it in GitHub Desktop.
import * as seasons from './seasons';
/**
* @param {number} month
* @returns {season}
**/
const getSummer = (month) => {
if ([5, 6, 7].includes(month)) {
return seasons.SUMMER;
}
return null;
}
/**
* @typedef {import('./interfaces').season} season
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment