Permalink
Browse files

add a new utility called ‘isBoolean’

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

0 comments on commit 8366eb5

Please sign in to comment.