This commit is contained in:
2021-02-02 23:56:50 +00:00
parent dcc0731812
commit 2d5de5c1d5
2 changed files with 15 additions and 5 deletions

View File

@@ -599,10 +599,21 @@ export default {
// https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_isString
//
isString: function(str) {
if (str && typeof str.valueOf() === "string") {
//modified from above, due to bug (I think)
//posted case here: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/issues/304
if (str == null) {
return false;
}
if (str == "") {
return true;
}
return false;
let temp = str.valueOf();
if (typeof temp === "string") {
return true;
} else {
return false;
}
},
///////////////////////////////////////////////
//