Created
June 10, 2020 23:20
-
-
Save ardeshireshghi/f206ca9f929ee7dfd315b358c1e10634 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numberofDaysAllMonths = (year = new Date().getFullYear()) => | |
[...Array(12)].map((_, month) => new Date(year, month + 1, 0).getDate()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment