codetrix - v1.5.0
    Preparing search index...

    Function cloneDate

    • Returns a cloned copy of the given date.

      Parameters

      • date: Date

        The original date.

      Returns Date

      A new cloned Date instance.

      cloneDate(new Date()); // → a new identical Date object