Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getMonthLength = date =>
isGregorian
? new Date(date.year, date.month, 0).getDate()
: jalaali.jalaaliMonthLength(date.year, date.month);