Format snippets
This commit is contained in:
@@ -9,7 +9,8 @@ Gets the name of the weekday from a `Date` object.
|
||||
- Use the optional second parameter to get a language-specific name or omit it to use the default locale.
|
||||
|
||||
```js
|
||||
const dayName = (date, locale) => date.toLocaleDateString(locale, { weekday: 'long' });
|
||||
const dayName = (date, locale) =>
|
||||
date.toLocaleDateString(locale, { weekday: 'long' });
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user