Hint
instanceof traverses the full prototype chain. All objects are ultimately instanceof Object.
console.log([] instanceof Array);
console.log([] instanceof Object);
console.log({} instanceof Array);true true false
Explanation: Arrays inherit from Array.prototype AND Object.prototype. [] instanceof Object is true. {} does not inherit from Array.
Key Insight: instanceof traverses the full prototype chain. All objects are ultimately instanceof Object.