function itemsEquals(itemEquals = strictEquals) {
    return (a, b) => arrays.equals(a, b, itemEquals);
}
Checks if the items of two arrays are equal.
By default, strict equality is used to compare elements, but a custom equality comparer can be provided.