/
githubmirror
/
dayjs
Обзор
Документация
Войти
/
githubmirror
/
dayjs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/plugin/toObject/index.js
14 строк
279 B
iamkun
fix: Move toObject, toArray API to separate plugin from core
07 мар 2019, 08:21
07 мар 2019, 08:21
40a3431
Код
Авторство
О чём код?
export default (o, c) => { const proto = c.prototype proto.toObject = function () { return { years: this.$y, months: this.$M, date: this.$D, hours: this.$H, minutes: this.$m, seconds: this.$s, milliseconds: this.$ms } } }