SOURCE

function mynew (fn, args) {
	let obj = Object.create(fn.prototype)
	let result = fn.apply(obj, args)
	return result instanceof Object ? result : obj
}
console 命令行工具 X clear

                    
>
console