Files
SupportBot/node_modules/chance/docs/time/weekday.md
T
2021-02-02 13:50:53 +00:00

17 lines
236 B
Markdown

# weekday
```js
// usage
chance.weekday()
chance.weekday({weekday_only: true})
```
Return a weekday
```js
chance.weekday();
=> 'Tuesday'
```
By default, weekday_only is false. If set to true it will never return Saturday or Sunday.