This commit is contained in:
2020-10-08 17:12:33 +00:00
parent 665f84db5f
commit 2beec7ebde
3 changed files with 10 additions and 12 deletions

View File

@@ -477,6 +477,13 @@ export default {
return true;
}
return false;
},
///////////////////////////////////////////////
// is Boolean replacement for lodash
// https://stackoverflow.com/a/43718478/8939
//
isBoolean: function(obj) {
return obj === true || obj === false || typeof variable === "boolean";
}
/**