{"size": 711, "ext": "js", "max_stars_repo_path": "modal/node_modules/date-fns/is_this_iso_week/index.js", "max_stars_repo_name": "maze-runnar/modal-component", "max_stars_repo_stars_event_min_datetime": "2020-08-05T21:04:32.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-08T08:55:41.000Z", "max_issues_repo_path": "modal/node_modules/date-fns/is_this_iso_week/index.js", "max_issues_repo_name": "maze-runnar/modal-component", "max_issues_repo_issues_event_min_datetime": "2020-01-13T00:45:27.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-20T04:10:05.000Z", "max_forks_repo_path": "modal/node_modules/date-fns/is_this_iso_week/index.js", "max_forks_repo_name": "maze-runnar/modal-component", "max_forks_repo_forks_event_min_datetime": "2019-03-19T12:34:36.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-11T01:08:48.000Z"}
{"max_stars_count": 86, "max_issues_count": 59, "max_forks_count": 45, "avg_line_length": 28.44, "max_line_length": 75, "alphanum_fraction": 0.7032348805}
var isSameISOWeek = require('../is_same_iso_week/index.js')

/**
 * @category ISO Week Helpers
 * @summary Is the given date in the same ISO week as the current date?
 *
 * @description
 * Is the given date in the same ISO week as the current date?
 *
 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
 *
 * @param {Date|String|Number} date - the date to check
 * @returns {Boolean} the date is in this ISO week
 *
 * @example
 * // If today is 25 September 2014, is 22 September 2014 in this ISO week?
 * var result = isThisISOWeek(new Date(2014, 8, 22))
 * //=> true
 */
function isThisISOWeek (dirtyDate) {
  return isSameISOWeek(new Date(), dirtyDate)
}

module.exports = isThisISOWeek
