Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/index.js>isWeekend

date-fns Deno package
Go to Latest
function isWeekend
import { isWeekend } from "https://deno.land/x/date_fns@v2.0.0-alpha.34/index.js";

Examples

// Does 5 October 2014 fall on a weekend? var result = isWeekend(new Date(2014, 9, 5)) //=> true

Parameters

dirtyDate
  • the date to check