jQuery has a method to check if something is a function
if ($.isFunction($.fn.dateJS)) { //your code using the plugin}
API reference: https://api.jquery.com/jQuery.isFunction/
jQuery has a method to check if something is a function
if ($.isFunction($.fn.dateJS)) { //your code using the plugin}
API reference: https://api.jquery.com/jQuery.isFunction/