This is in connection with the web page https://www.w3schools.com/js/js_arrays.asp.
Array.isArray function does not return correct true when its argument is an array of object. What can be the reason? Is it a bug?
A method suggested by W3ishools to use a tailor-made function
function isArray(x) {
return x.constructor.toString().indexOf("Array") > -1;
}
which also does not work, as in the code given below:
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Arrays</h2>
<p>This "home made" isArray() function returns true when used on an ar