Contact: aviboots(AT)netvision.net.il
39,885 questions
51,811 answers
573 users
const obj = { mul: (a : number, b : number) => { return a * b; }, }; console.log(typeof obj.mul); console.log(typeof obj.mul === 'function' ? "contains a function" : "not contains a function"); /* run: "function" "contains a function" */