added utils.isString()
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -134,6 +134,11 @@ function isObject(value) { | ... | @@ -134,6 +134,11 @@ function isObject(value) { |
134 | } | 134 | } |
135 | exports.isObject = isObject; | 135 | exports.isObject = isObject; |
136 | 136 | ||
137 | function isString(value) { | ||
138 | return isType(value, "string"); | ||
139 | } | ||
140 | exports.isFunction = isFunction; | ||
141 | |||
137 | /** | 142 | /** |
138 | * Shorthands for checking if a value is of the given type. Can check for | 143 | * Shorthands for checking if a value is of the given type. Can check for |
139 | * arrays. | 144 | * arrays. | ... | ... |
-
Please register or sign in to post a comment