Permalink
Browse files

add a new utility called ‘isFunction’

  • Loading branch information...
1 parent 8366eb5 commit c5b277fd9bdf6f74e7f62009be19fc31635858b8 @Baggz committed Mar 12, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/utils/isFunction.js
@@ -0,0 +1,8 @@
+/**
+ * IsFunction
+ *
+ * @param {object} input
+ */
+var isFunction = function(input) {
+ return typeof input === 'function';
+};

0 comments on commit c5b277f

Please sign in to comment.