We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8279bf0 commit 1fc6e0eCopy full SHA for 1fc6e0e
index.js
@@ -371,3 +371,31 @@
371
anotherArray.at(-2); // 8
372
}
373
374
+// The isArray() method
375
+{
376
+ const arr = [1,2,3,4];
377
+ Array.isArray(arr);
378
+ Array.isArray({});
379
+ Array.isArray(1);
380
+ Array.isArray([]);
381
+}
382
+
383
384
+// The Array.of() method
385
386
+ const a = new Array(2,3,4);
387
+ const b = [4,5,6];
388
+ const c = Array.of(2, false, 'test', {'name': 'Alex'});
389
390
391
392
+const array_like = {
393
+ 0: 'A',
394
+ 1: 'B',
395
+ 2: 'C',
396
+ length : 3
397
398
399
+array_like[1]
400
401
+Array.from(array_like)
0 commit comments