From 9a51b6dbaeee4b3cf50488e46b07131013d9e972 Mon Sep 17 00:00:00 2001 From: iamkun Date: Fri, 20 Dec 2024 13:15:15 +0800 Subject: [PATCH] chore: update demo --- docs/demo/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/demo/index.js b/docs/demo/index.js index ceaa9b22f..9333ab38f 100644 --- a/docs/demo/index.js +++ b/docs/demo/index.js @@ -22,3 +22,6 @@ dayjs().diff(dayjs().add(1, 'year'), 'year') // isBefore dayjs().isBefore(dayjs().add(1, 'year')) + +// isAfter +dayjs().isAfter(dayjs().subtract(1, 'year'))