gradum-kit - v0.1.0
    Preparing search index...

    Function areSimilar

    • Function

      areSimilar

      Type Parameters

      • Type = any

        The type of the compared entries.

      Parameters

      • ...entries: Type[]

        The entries to compare. Fewer than two entries always counts as similar.

      Returns boolean

      true if all entries are equivalent in content.

      Check whether every entry holds the same content, even if they are different objects. Falls back through three strategies per pair: identity, the entries' own equals method if they define one, then matching JSON and string representations. Non-objects that are not identical are never similar.