INNER CODE UNIT · JavaScript

getAppCurrency

hisabi-app/hisabi · resources/js/Utils/index.js:3

export const getAppCurrency = () => {
    return window ? window.AppCurrency : ''
}

export const formatNumber = (number, format = '(0[.]000a)') => {
    numbro.setDefaults({ thousandSeparated: true, })

    const num = numbro(number)

    if(! format) {
        return num.format()
    }

    return num.format(format)
}

export const animateRowItem = (id, animation = 'updated', callback = null) => {
    let rowItem = document.getElementById('item-' + id);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…