Files
SupportBot/node_modules/chance/docs/finance/currency_pair.md
T

13 lines
318 B
Markdown
Raw Normal View History

2021-02-02 13:50:53 +00:00
# currency_pair
```js
// usage
chance.currency_pair()
```
Generate a currency pair. Handy for simulating currency conversions. Guaranteed to return a unique pair (and not the same currency twice).
```js
chance.currency_pair();
=> [{ code: "ALL", name: "Albania Lek" }, { code: "ZWD", name: "Zimbabwe Dollar" }]
```