How to use the currency-symbol-map.currencySymbolMap.hasOwnProperty function in currency-symbol-map

To help you get started, we’ve selected a few currency-symbol-map examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github EdgeApp / edge-react-gui / src / modules / utils.js View on Github external
export function getAllDenomsOfIsoCurrencies (): Array {
  // Convert map to an array
  const denomArray = []

  for (const currencyCode in currencySymbolMap) {
    if (currencySymbolMap.hasOwnProperty(currencyCode)) {
      const item = getDenomFromIsoCode(currencyCode)
      if (item.name.length) {
        denomArray.push(item)
      }
    }
  }
  return denomArray
}

currency-symbol-map

A function to lookup the currency symbol for a given currency code

BSD-2-Clause
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis