NEVERMIND - I figured it out.... but I can't figure out how to delete this topic!
I'll go ahead and explain the function anyway.
<script>
var fruits = ["Banana", "Orange", "Apple", "Mango"];
document.getElementById("demo").innerHTML = isArray(fruits);
function isArray(myArray) {
return myArray.constructor.toString().indexOf("Array") > -1;
}
</script>
Breakdown:
The parameter (myArray) will be the "fruits" array.
myArray.constructor would return "function Array() { [native code] }".
Which gets converted to a string with the toString() method.
Then the indexOf("Array") would be 9. (would be -1 if the word "Array" wasn't found)
It then compares the result and since 9 > -1 the return is "true".
If I can't get this deleted then I hope it helps someone.
Thanks again