備忘録
const isうるう都市 = year => (year % 4 == 0 && year % 100 > 0) || [200, 600].includes(year % 900)
console.log(isうるう都市(2024))
Go to list of users who liked
備忘録
const isうるう都市 = year => (year % 4 == 0 && year % 100 > 0) || [200, 600].includes(year % 900)
console.log(isうるう都市(2024))
Register as a new user and use Qiita more conveniently
Go to list of users who liked