I have a list of dependant methods in jquery. I would like to test dynamicaly if they exists. I tired this simple way:
console.log(jQuery.isFunction($.fn.popover));
which returned true. But when I put method name into variable I received a false.
var func = '$.fn.popover';
console.log(jQuery.isFunction(window[func]));
Does anybody know how can I test if method exists from variable. Thanks