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