ArraySupport
ArraySupport étend les API dayjs()
et dayjs.utc()
pour permettre l'utilisation d'arguments sous forme de tableau.
javascript
var arraySupport = require('dayjs/plugin/arraySupport');
// import arraySupport from 'dayjs/plugin/arraySupport' // ES 2015
dayjs.extend(arraySupport);
dayjs([2010, 1, 14, 15, 25, 50, 125]);
dayjs.utc([2010, 1, 14, 15, 25, 50, 125]);