Periksa apakah objek berisi fungsi


 
		 const res = {a:"aaa", b:function(){console.log("b")}};
	 
	 console.log(typeof res.b == "function");
	 /*true, notice it is b and not b()*/

Javasper