And the generation Z version in case you are wondering is
function FuckYou(T) {
return class {
// something with T
};
}
Because you can return classes from a function.