Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dynamic array of months js

const months = Array.from({length: 12}, (e, i) => {
   return new Date(null, i + 1, null).toLocaleDateString("en", {month: "short"});
})
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #dynamic #array #months #js
ADD COMMENT
Topic
Name
9+6 =