import { default } from "https://deno.land/x/date_fns@v2.22.1/nextFriday/index.ts";
Examples
// When is the next Friday after Mar, 22, 2020?
const result = nextFriday(new Date(2020, 2, 22))
//=> Fri Mar 27 2020 00:00:00
// When is the next Friday after Mar, 22, 2020? const result = nextFriday(new Date(2020, 2, 22)) //=> Fri Mar 27 2020 00:00:00
Parameters
date: Date | number
- the date to start counting from