This commit is contained in:
2020-12-24 19:09:32 +00:00
parent 081d21ff98
commit 74b97a3ed0
3 changed files with 43 additions and 53 deletions

View File

@@ -306,6 +306,17 @@ export default {
return ret;
},
///////////////////////////////
// Is negative number
//
//
isNegative: function(v) {
//null or empty then zero
if (!v || v == 0 || v == NaN) {
return false;
}
return parseFloat(v) < 0;
},
///////////////////////////////
// Splice a string
//changes the content of a string by removing a range of
// characters and/or adding new characters.