The getWeekInfo()
method of Intl.Locale
instances returns a weekInfo
object with the properties firstDay
, weekend
and minimalDays
for this locale.
Note: In some versions of some browsers, this method was implemented as an accessor property called weekInfo
. However, because it returns a new object on each access, it is now implemented as a method to prevent the situation of locale.weekInfo === locale.weekInfo
returning false
. Check the browser compatibility table for details.