Class trick

by Alex Myronov

JavaScript

function Ctr() {
	if (!(this instanceof Ctr)) return new Ctr
}

console.log(Ctr())