blob: 374507b8f9a5013e0ef922cb112d2eb41e336505 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (C) 2018 Shilpi Jain and Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.flat
description: >
using bound functions
includes: [compareArray.js]
features: [Array.prototype.flat]
---*/
var a = [
[0],
[1]
];
var actual = [].flat.bind(a)();
assert.compareArray(actual, [0, 1], 'The value of actual is expected to be [0, 1]');
reportCompare(0, 0);
|