Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7

This commit is contained in:
WPT Sync Bot 2020-01-29 11:32:50 +00:00
parent 7e4d0534c3
commit d2429e5077
4053 changed files with 160516 additions and 486 deletions

View file

@ -1,4 +1,19 @@
// Returns true if the given arrays are equal. Optionally can pass an equality function.
/**
* Callback for checking equality of c and d.
*
* @callback equalityCallback
* @param {*} c
* @param {*} d
* @returns {boolean}
*/
/**
* Returns true if the given arrays are equal. Optionally can pass an equality function.
* @param {Array} a
* @param {Array} b
* @param {equalityCallback} callbackFunction - defaults to `c === d`
* @returns {boolean}
*/
export function areArraysEqual(a, b, equalityFunction = (c, d) => { return c === d; }) {
try {
if (a.length !== b.length)