Skip to content
Snippets Groups Projects
Commit d8233624 authored by Michael Ficarra's avatar Michael Ficarra Committed by Rick Waldron
Browse files

add missing compareArray function

parent 6bd7b21a
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
esid: sec-array.prototype.flatten esid: sec-array.prototype.flatten
description: > description: >
arrays with empty object elements arrays with empty object elements
includes: [compareArray.js]
---*/ ---*/
var a = {}, b = {}; var a = {}, b = {};
assert.compareArrays([a].flatten(), [a]); assert.compareArray([a].flatten(), [a]);
assert.compareArrays([a, [b]].flatten(), [a, b]); assert.compareArray([a, [b]].flatten(), [a, b]);
assert.compareArrays([[a], b].flatten(), [a, b]); assert.compareArray([[a], b].flatten(), [a, b]);
assert.compareArrays([[a], [b]].flatten(), [a, b]); assert.compareArray([[a], [b]].flatten(), [a, b]);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment