Skip to content

DKunin/date-streak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Date Streak

For now only one function, which determines if you are currently on a streak of dates, and the length of the last streak.

    import { determineStreak } from 'date-streak';

    determineStreak([
        today,
        yesterday,
        twoDaysAgo,
        threeDaysAgo,
        fourDaysAgo,
        fiveDaysAgo,
        sixDaysAgo,
        sevenDaysAgo
    ]) // { isCurrentlyOnStreak: true, lengthOfTheLastStreak: 8 }

About

Fiddle with date streaks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published