source/ReactTimeAgo.js
function convertToDate(input)
{
	if (input.constructor === Date) {
		return input
	}

	if (typeof input === 'number') {
		return new Date(input)
	}

	throw new Error(`Unsupported react-time-ago input: ${typeof input}, ${input}`)
}
function convertToDate(input)
{
	if (input.constructor === Date) {
		return input
	}

	if (typeof input === 'number') {
		return new Date(input)
	}

	throw new Error(`Unsupported react-time-ago input: ${typeof input}, ${input}`)
}
function convertToDate ( input ) { if ( input . constructor === Date ) { return input } if ( typeof input === 'number' ) { return new Date ( input ) } throw new Error ( ` ${ typeof input } ${ input } ` ) }
Converts argument into a `Date`.
Converts argument into a Date .