typeof variable; // Returns string representation Array.isArray(variable); // Check if array variable instanceof Constructor; // Check instance type Object.prototype.toString.call(variable); // Most reliable method
Generating explanation with Claude AI...
This will use 10 credits