Newer
Older
alert / js / node_modules / dayjs / esm / plugin / toObject / index.js
@Réz István Réz István on 18 Nov 2021 288 bytes first commit
export default (function (o, c) {
  var 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
    };
  };
});