mirror of https://github.com/zulip/zulip.git
js: Convert _.isString to typeof.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
a3e5fef663
commit
ee68ef516d
|
@ -8,7 +8,7 @@ side validators in zerver/lib/validator.py.
|
|||
*/
|
||||
|
||||
exports.check_string = function (var_name, val) {
|
||||
if (!_.isString(val)) {
|
||||
if (typeof val !== "string") {
|
||||
return var_name + ' is not a string';
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue