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.
24 lines
342 B
24 lines
342 B
4 weeks ago
|
# month
|
||
|
|
||
|
```js
|
||
|
// usage
|
||
|
chance.month()
|
||
|
```
|
||
|
|
||
|
Generate a random month.
|
||
|
|
||
|
```js
|
||
|
chance.month();
|
||
|
=> 'January'
|
||
|
```
|
||
|
|
||
|
By default, returns just the full name.
|
||
|
|
||
|
Optionally specify raw to get the whole month object consisting of name,
|
||
|
short_name, and numeric.
|
||
|
|
||
|
```js
|
||
|
chance.month({raw: true});
|
||
|
=> {name: 'October', short_name: 'Oct', numeric: '10'}
|
||
|
```
|