Browse files

Add a new utility called ‘isString’

  • Loading branch information...
1 parent fdcf0ba commit 131ebb6511cd613c01b445b719b4c69cacc29e22 @Baggz committed Mar 12, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/utils/isString.js
View
8 src/utils/isString.js
@@ -0,0 +1,8 @@
+/**
+ * IsString
+ *
+ * @param {object} input
+ */
+var isString = function(input) {
+ return typeof input === 'string';
+};

0 comments on commit 131ebb6

Please sign in to comment.