Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDecimalFromNormalizedString (value) {
// For some reason Decimal.parse treats null as 0, so we have to check for it here
return Decimal.parse(value === null ? NaN : value, Locale.defaultLocale)
}