This is a really basic question really just to satisfy my curiosity, but is there a way to do something like this:
if(obj !instanceof Array) { //The obje
Enclose in parentheses and negate on the outside.
if(!(obj instanceof Array)) { //... }
In this case, the order of precedence is important (https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Operator_Precedence). The ! operator precedes the instanceof operator.