We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58effcd commit 7a3cf65Copy full SHA for 7a3cf65
lib/node_modules/@stdlib/assert/is-plain-object-array/test/test.js
@@ -34,15 +34,16 @@ tape( 'main export is a function', function test( t ) {
34
35
tape( 'the function tests for an array-like object containing only plain objects', function test( t ) {
36
var arr;
37
+ var obj;
38
- arr = [ {
39
+ obj = {
40
'type': 'object'
- }, {}, {} ];
41
+ };
42
+
43
+ arr = [ obj, {}, {} ];
44
t.strictEqual( isPlainObjectArray( arr ), true, 'returns true' );
45
- 'type': 'object'
- }, /.*/, {} ];
46
+ arr = [ obj, /.*/, {} ];
47
t.strictEqual( isPlainObjectArray( arr ), false, 'returns false' );
48
49
arr = [ 5.0, {}, new Date() ];
0 commit comments