JSFiddle - React, Tailwind, and code Playground

by wilt

JavaScript

array = [];

object = {};

if(array instanceof Array === false) {
    //The object is not an instance of Array
    console.log( "The object is not an instance of Array" );
} else {
    //The object is an instance of Array
    console.log( "The object is an instance of Array" );
}

if(object instanceof Array === false) {
    //The object is not an instance of Array
    console.log( "The object is not an instance of Array" );
} else {
    //The object is an instance of Array
    console.log( "The object is an instance of Array" );
}