2.0.1 • Published 4 years ago

@strong-roots-capital/first-full-week-of-year v2.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

first-full-week-of-year Build status npm version codecov

Find the first week of a given year composed entirely of days in said year

Note: this package assumes Monday to be the first day of the week.

Install

npm install @strong-roots-capital/first-full-week-of-year

Use

import firstFullWeekOfYear from '@strong-roots-capital/first-full-week-of-year'

console.log(firstFullWeekOfYear(new Date("2019-05-25T00:00:00.000Z")))
//=>  2019-01-07T00:00:00.000Z

Documentation

firstFullWeekOfYear :: Date -> Date

Creates a Date object representing the first Monday of the specified year.

Acknowledgments

1.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago