Typer is a Javascript function to determine the data type of given data