Commit ce868249 ce868249cf2b99d02bdaf9a3c33f07756fc68019 by Nicolas Perriault

added utils.isString()

1 parent b1e9bede
...@@ -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.
......