Prelude API
    Preparing search index...

    Function encode

    • Invalid dates (structured clone supports them) are encoded as the string Invalid Date, which Date parses back to an invalid date.

      Parameters

      • value: Date

      Returns { "^Date$": string }