Skip to content

object-support

Imported from yugajs/extension/object-support.

const objectSupport: yuga.Extension<void>;

Adds plain objects of values by unit: as parsables, and for set, add and subtract. Day.js’s objectSupport plugin.

Inside a parsed object day is the date of the month, while set({ day }) is the weekday, the same as Day.js. Years 0-99 stay as written, Day.js reads them as 19xx (but year: 0 is the current year, also the same).