DEV Community

Kotlin : Check if a year is a leap year?

NDONGO TONUX SAMB on April 16, 2020

code : output
Collapse
 
madza profile image
Madza • Edited

const isLeapYear=y=>!(y&3||y&15&&!(y%25))