From 9adec39f348f89ff7b066da32a02e173d9ca4fe1 Mon Sep 17 00:00:00 2001 From: Vu Pham Nguyen <50260408+horsemandotpy@users.noreply.github.com> Date: Wed, 26 Jun 2024 12:08:27 +0700 Subject: [PATCH] Update is-same-or-before.md Missing import module instruction --- docs/query/is-same-or-before.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/query/is-same-or-before.md b/docs/query/is-same-or-before.md index b1ef5b29d..371f0c967 100644 --- a/docs/query/is-same-or-before.md +++ b/docs/query/is-same-or-before.md @@ -8,6 +8,9 @@ This indicates whether the Day.js object is the same or before another supplied @>IsSameOrBefore ```js +var isSameOrBefore = require("dayjs/plugin/isSameOrBefore"); +// import isSameOrBefore from 'dayjs/plugin/isSameOrBefore' // ES2015 + dayjs.extend(isSameOrBefore) dayjs().isSameOrBefore(dayjs('2011-01-01')) // default milliseconds ```