Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

getISOWeeksInYear

import { getISOWeeksInYear } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// How many weeks are in ISO week-numbering year 2015?
const result = getISOWeeksInYear(new Date(2015, 1, 11))
//=> 53
function getISOWeeksInYear<DateType extends Date>(date: DateType | number | string): number;
§
getISOWeeksInYear<DateType extends Date>(date: DateType | number | string): number
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
date: DateType | number | string
[src]
  • The given date

§Return Type

§
number
[src]

The number of ISO weeks in a year