GitHub 6248★

Redirect to another page

JavaScript version

const goTo = (url) => (location.href = url);

TypeScript version

const goTo = (url: string): string => (location.href = url);
Follow me on and to get more useful contents.