const myVar = {name: 'John', age: 30}; console.log(_.isObject(myVar)); // Output: true
const myVar = 'hello'; console.log(_.isObject(myVar)); // Output: falseIn the above example, we are declaring a variable 'myVar' and initializing it with a string. We are then using _.isObject method to check if this variable is an object. As the variable is not an object, the method returns false. This function is part of the Underscore.js library.