Last active
August 29, 2015 14:12
-
-
Save revazi/92e608aac8b5e93d23f9 to your computer and use it in GitHub Desktop.
Check if object is a function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isFunction = function(obj) { | |
var getType = {}; | |
return obj && getType.toString.call(obj) === '[object Function]'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment