/**
 * @param 	{Date}		dateToCheck
 * @returns	{boolean}	The passed date is less than 3 days distant from today,
 * 										therefore it's considered a new release, if referring to a track or album
 */
export function checkNewRelease(dateToCheck) {
	let now = new Date()
	now.setHours(0, 0, 0, 0)

	dateToCheck = new Date(dateToCheck)
	dateToCheck.setDate(dateToCheck.getDate() + 3)

	return now.getTime() <= dateToCheck.getTime()
}
