This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
///////////////////////////////////////////////
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user