• Comparison of the contents of two arrays. Position of elements is ignored.

    Parameters

    • array1: any[]
    • array2: any[]

    Returns boolean

    arrayCompare(['a', 'b'], ['b', 'a']) // true
    arrayCompare(['a', 'b'], ['b']) // false
    arrayCompare('asdf1234', '1234asdf') // true