* Return `true` if the formatted or unformatted numeric string represent the value 0 (ie. '0,00 €'), or is empty (' €'). * This works since we test if there are any numbers from 1 to 9 in the string. If there is none, then the number is zero (or the string is empty). * * @param {strin
(numericString)
| 553 | * @returns {boolean} |
| 554 | */ |
| 555 | static isZeroOrHasNoValue(numericString) { |
| 556 | return !(/[1-9]/g).test(numericString); |
| 557 | } |
| 558 | |
| 559 | /** |
| 560 | * Return the negative version of the value (represented as a string) given as a parameter. |
no test coverage detected