@resee-movies/utilities - v0.8.0
    Preparing search index...

    Type Alias AreArraysEqualOptions

    Config options for the areArraysEqual method.

    type AreArraysEqualOptions = {
        ignoreOrder?: boolean;
    }
    Index

    Properties

    Properties

    ignoreOrder?: boolean

    Lighten the testing requirements to ignore ordering - the values in arrayA must appear in arrayB, but not at the same index.

    Note that this does not count/compare the number of times that a given value is present in both arrays, only that the value is present. This means, for example, that comparing ['A', 'B', 'B'] and ['A', 'A', 'B'] will return true when using this option.