This commit is contained in:
2020-04-02 14:09:29 +00:00
parent d212bd5524
commit 35c5ad56c2
2 changed files with 13 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ export default {
// which can be problematic in some cases (IE bugs, watched data items in forms etc)
removeAllPropertiesFromObject: function(o) {
for (var variableKey in o) {
for (let variableKey in o) {
if (o.hasOwnProperty(variableKey)) {
delete o[variableKey];
}
@@ -89,7 +89,7 @@ export default {
// https://stackoverflow.com/a/7616484/8939
//
quickHash: function(theString) {
var hash = 0,
let hash = 0,
i,
chr;
if (theString.length === 0) return hash;
@@ -141,7 +141,7 @@ export default {
return 0;
}
var ret = parseFloat(string.replace(/[^\d.-]/g, ""));
let ret = parseFloat(string.replace(/[^\d.-]/g, ""));
if (ret == NaN) {
return 0;
}