JSFiddle - React, Tailwind, and code Playground

by Alexander

JavaScript

console.clear();

var a;

a = new Int8Array(1);
a = [];
a[0] = 127;

//a = Array.prototype.slice.call({0:1,1:2, length:2});
//a = document.querySelectorAll('body');
//class A extends Array {} a = new A;
//a = new Proxy([], { get: (o,p) => p == 'map' ? void 0 : o[p] });

console.dir(a);
console.log( Array.isArray(a) );
console.log( a.map );

let s = Object.prototype.toString.call(a);
console.log(
	s,
	/Array]$/.test (s)
);