How to tell if a JavaScript function is defined

typeof callback === "function"

Leave a Comment