extensions/microsoft-authentication/src/authServer.ts/assertIsDefined
function assertIsDefined<T>(arg: T | null | undefined): T {
	if (typeof (arg) === 'undefined' || arg === null) {
		throw new Error('Assertion Failed: argument is undefined or null');
	}

	return arg;
}