summaryrefslogtreecommitdiff
path: root/src/node_modules/chance/docs/finance/exp.md
blob: 05fb59d5506865f24fe706ee4f2628714438ca05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# exp

```js
// usage
chance.exp()
chance.exp({raw: true})
```

Generate a random credit card expiration.

```js
chance.exp();
=> '10/2020'
```

Optionally specify that a raw object be returned rather than a string

```js
chance.exp({raw: true});
=> {month: '11', year: '2017'}
```