mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
refactor utilies function, explicitly ignore security warning
This commit is contained in:
parent
2545f1342e
commit
a319bc2f03
@ -1,11 +1,9 @@
|
||||
import { Decimal } from 'decimal.js-light'
|
||||
import i18n from 'i18n'
|
||||
|
||||
export const objectValuesToArray = (obj: Record<string, string>): string[] => {
|
||||
return Object.keys(obj).map(function (key) {
|
||||
return obj[key]
|
||||
})
|
||||
}
|
||||
export const objectValuesToArray = (obj: Record<string, string>): string[] =>
|
||||
// eslint-disable-next-line security/detect-object-injection
|
||||
Object.keys(obj).map((key) => obj[key])
|
||||
|
||||
export const decimalSeparatorByLanguage = (a: Decimal, language: string): string => {
|
||||
const rememberLocaleToRestore = i18n.getLocale()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user