You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
282 B
22 lines
282 B
4 weeks ago
|
# 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'}
|
||
|
```
|