currency-formatter
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -16,3 +16,3 @@ var data = require('./data'); | ||
CurrencyFormatter.prototype.format = function (value, options) { | ||
var currency = data.find(c => c.code === options.code) || this.defaultCurrency; | ||
var currency = data.find(function(c) { return c.code === options.code; }) || this.defaultCurrency; | ||
@@ -43,5 +43,5 @@ var symbolOnLeft = currency.symbolOnLeft; | ||
CurrencyFormatter.prototype.findCurrency = function (currencyCode) { | ||
return data.find(c => c.code === currencyCode); | ||
return data.find(function(c) { return c.code === currencyCode; }); | ||
} | ||
module.exports = new CurrencyFormatter(); |
{ | ||
"name": "currency-formatter", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A simple Javascript utility that helps you to display currency properly", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40841