Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 236 Bytes

get_month_names.md

File metadata and controls

7 lines (6 loc) · 236 Bytes

Get month names

// instead of long, we can type narrow, short, 2-digit
Array.from({length: 12}, (x, index) => (new Date(0, index).toLocaleDateString('en-US', {month: 'long'})));
// ['January', 'February', ... , 'December']