MicroHack-Registrations-RestAPI / src / utils / Function.ts
Function.ts
Raw


export function log(message: string, ...optionalParams: any[]) {
	if (process.env.NODE_ENV !== "test") {
		console.log(message, ...optionalParams);
	}
}

export function RandomEmail() {
	return Math.random().toString(36).substring(7) + "@gmail.com";
}