'use strict';

var fnToStr = Function.prototype.toString;

module.exports = function isCallable(value) {
	try {
		fnToStr.call(value);
		return true;
	} catch (e) {
		return false;
	}
};

'use strict';

var fnToStr = Function.prototype.toString;

module.exports = function isCallable(value) {
	if (typeof value !== 'function') { return false; }
	try {
		fnToStr.call(value);
		return true;
	} catch (e) {
		return false;
	}
};

Add early exit for typeof not "function"
Add early exit for typeof not "function"