Customizable value to be used when the comparison delegate explodes.
Wrap this comparator as a delegate to be passed to arrays or other sortable constructs.
Wrap this comparator as a delegate to be passed to arrays or other sortable constructs.
Returns the comparison result between the two given versions, where:
Returns defaultValue on comparison failure.
equals() alias
Returns true if v1 == v2 - defaults to defaultValue on error.
Returns true if v1 > v2 - defaults to defaultValue on error.
Returns true if v1 >= v2 - defaults to defaultValue on error.
greaterThan() alias
greaterThanOrEqualTo() alias
Returns true if v1 < v2 - defaults to defaultValue on error.
Returns true if v1 <= v2 - defaults to defaultValue on error.
lessThan() alias
lessThanOrEqualTo() alias
Returns true if the comparison between v1 and v2 results in the given type. Returns defaultValue on comparison error.
Generated using TypeDoc
Core implementation for comparison functionality with error catching baked in.