ng-xtend API documentation
    Preparing search index...

    Class ManagedDataHandler<Type>

    A general data handler that manages an optional _id field and Date fields from / to json

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Compares two values of this type. Null values are always sorted first. Comparison uses the natural value of the type: lexicographic for strings, numeric for numbers and booleans, chronological for dates and times, and the configured numeric field for complex types.

      Parameters

      • value1: Type

        The first value to compare

      • value2: Type

        The second value to compare

      Returns number

      A negative number if value1 is smaller, zero if equal, a positive number if value1 is greater

    • Parses a date string into a Date object, handling optional timezone annotations

      Parameters

      • dateAsString: string | null | undefined

        The date string to parse

      Returns Date | null | undefined

      A Date object, null for null input, or undefined if parsing fails