import { default } from "https://deno.land/x/date_fns@v2.22.1/isWeekend/index.ts";
Examples
// Does 5 October 2014 fall on a weekend?
const result = isWeekend(new Date(2014, 9, 5))
//=> true
// Does 5 October 2014 fall on a weekend? const result = isWeekend(new Date(2014, 9, 5)) //=> true
Parameters
dirtyDate: Date | number
- the date to check