class Test { f(func) { console.log("Function?", func instanceof Function); } } > let t = new Test(); undefined > t.f(() => 3) Function? false undefined