js: Convert _.isString to typeof.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-02-08 21:03:29 -08:00 committed by Tim Abbott
parent a3e5fef663
commit ee68ef516d
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}
};