Day.js objektum?
Ez a metódus azt ellenőrzi, hogy egy változó Day.js objektum-e.
js
dayjs.isDayjs(dayjs()); // true
dayjs.isDayjs(new Date()); // false
Az instanceof
operátor is használható:
js
dayjs() instanceof dayjs; // true