is-currency-code
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -5,5 +5,5 @@ const currencyCodes = require('./currency-codes'); | ||
if (typeof code === 'string') { | ||
return currencyCodes.includes(code.toLowerCase()); | ||
return currencyCodes.indexOf(code.toLowerCase()) >= 0; | ||
} | ||
return false; | ||
}; |
{ | ||
"name": "is-currency-code", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Validates whether a given input is a valid ISO 4217 currency code", | ||
@@ -5,0 +5,0 @@ "scripts": { |
3525