Possible Duplicate:
How can I check if a javascript variable is function type?
How i check if a variable is a function for Array exist Array.isArray() but Function.isFunction dos'nt exist
if (typeof variable === 'function') { // do something }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With