Skip to content

Instantly share code, notes, and snippets.

@gotbahn
Created March 13, 2021 19:37
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