Permalink
cf9e6a1 Jan 2, 2016
16 lines (12 sloc) 302 Bytes
title version signature
Is Leap Year
1.0.0
moment().isLeapYear();

moment#isLeapYear returns true if that year is a leap year, and false if it is not.

moment([2000]).isLeapYear() // true
moment([2001]).isLeapYear() // false
moment([2100]).isLeapYear() // false