Member Junction
    Preparing search index...
    • Epoch milliseconds for a value that may be a Date, an ISO/parseable string, a numeric timestamp, or absent. Returns 0 for null/undefined/unparseable input so it is safe to use directly in a sort comparator.

      Framework date fields such as __mj_CreatedAt are typed as Date but can hold a raw string at runtime when rows arrive from a serialized source (cache payloads, wire JSON) rather than through BaseEntity's coercing accessors. Optional chaining does not protect a .getTime() call in that case — "…"?.getTime is undefined, and calling it throws.

      Parameters

      • value: string | number | Date | null | undefined

      Returns number