CycloneDX JavaScript Library - Web - v9.4.0
    Preparing search index...

    Interface Comparable<TOther>

    interface Comparable<TOther> {
        compare: (other: TOther) => number;
    }

    Type Parameters

    • TOther

    Implemented by

    Index

    Properties

    Properties

    compare: (other: TOther) => number

    Compare one object with another.

    The purpose of this method is not to test for equality, but have deterministic comparability. As long as this method is deterministic, there is no need for a proper ordering in any result/downstream.