@yookue/ts-lang-utils
    Preparing search index...

    Function getStartOfYear

    • Returns the start year date of the given date

      Parameters

      • Optionaldate: Date

        the date to inspect

      Returns undefined | Date

      the start year date of the given date

      David Hsing

      getStartOfYear(new Date(2023, 8, 30));    // Date(2023, 0, 1, 0, 0, 0)