2014-07-22 01:09:02 +02:00
|
|
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
2015-07-17 17:42:45 +02:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
2014-07-22 01:09:02 +02:00
|
|
|
|
|
|
|
/*---
|
2017-06-28 20:57:55 +02:00
|
|
|
esid: sec-array.isarray
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Array.isArray return false if its argument is not an Array
|
|
|
|
---*/
|
|
|
|
|
2021-08-10 23:51:54 +02:00
|
|
|
assert.sameValue(Array.isArray(42), false, 'Array.isArray(42) must return false');
|
|
|
|
assert.sameValue(Array.isArray(undefined), false, 'Array.isArray(undefined) must return false');
|
|
|
|
assert.sameValue(Array.isArray(true), false, 'Array.isArray(true) must return false');
|
|
|
|
assert.sameValue(Array.isArray("abc"), false, 'Array.isArray("abc") must return false');
|
|
|
|
assert.sameValue(Array.isArray({}), false, 'Array.isArray({}) must return false');
|
|
|
|
assert.sameValue(Array.isArray(null), false, 'Array.isArray(null) must return false');
|