convert(value, {
from: 'USD',
to: 'JPY',
base: 'USD',
rates: exchangeRates,
})
when value is NaN it throw ``ratesobject does not contain eitherfrom` or `to` currency!` . Which seems unrelated.
Should not it throw error related to value is NaN instead?