# ToArray

URL: https://caijiao.org/dayjs/plugin/to-array
Source: docs/dayjs/plugin/to-array.md
Description: ToArray 增加了 .toArray() API 来返回包含时间数值的 array。

ToArray 增加了 `.toArray()` API 来返回包含时间数值的 array。

```javascript
var toArray = require("dayjs/plugin/toArray");
dayjs.extend(toArray);

dayjs("2019-01-25").toArray(); // [ 2019, 0, 25, 0, 0, 0, 0 ]
```
