{"id":18506,"library":"lodash.isobject","title":"lodash.isobject","description":"A standalone module exporting lodash's _.isObject function (v3.0.2). Checks if a value is a language type of 'object', excluding null. This modularized lodash package is part of the v3 series and is considered legacy; it is recommended to use the full lodash 4.x+ or lodash-es packages instead. The package is deprecated and no longer maintained, with no new releases planned. Version 3.0.2 is the latest and final release.","status":"deprecated","version":"3.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/lodash/lodash","tags":["javascript","lodash","lodash-modularized","stdlib","util"],"install":[{"cmd":"npm install lodash.isobject","lang":"bash","label":"npm"},{"cmd":"yarn add lodash.isobject","lang":"bash","label":"yarn"},{"cmd":"pnpm add lodash.isobject","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is CommonJS-only and does not support ES modules. For ESM, use lodash-es or modern lodash.","wrong":"import isObject from 'lodash.isobject';","symbol":"isObject","correct":"var isObject = require('lodash.isobject');"},{"note":"The package exports the function directly, not as a named export.","wrong":"const { isObject } = require('lodash.isobject');","symbol":"isObject","correct":"const isObject = require('lodash.isobject');"},{"note":"This only works if you have an ESM-compatible shim; native ESM is not supported.","wrong":"import { isObject } from 'lodash.isobject';","symbol":"isObject","correct":"import isObject from 'lodash.isobject'; // fails; use require"}],"quickstart":{"code":"var isObject = require('lodash.isobject');\nconsole.log(isObject({})); // true\nconsole.log(isObject([1, 2, 3])); // true\nconsole.log(isObject(null)); // false\nconsole.log(isObject(42)); // false\nconsole.log(isObject('string')); // false\nconsole.log(isObject(undefined)); // false\nconsole.log(isObject(function() {})); // true (functions are objects)\nconsole.log(isObject(/regex/)); // true","lang":"javascript","description":"Demonstrates using require() to import the module and testing various values with isObject()."},"warnings":[{"fix":"Replace with lodash 4.x: npm install lodash and use _.isObject.","message":"This package is part of lodash v3 modular builds and is no longer maintained. Use lodash 4.x+ (full) or lodash-es instead.","severity":"deprecated","affected_versions":">=3.0.0"},{"fix":"Use isObjectLike or isPlainObject if you want to exclude functions.","message":"In lodash v3, isObject returns true for functions, while some users expect it to only return true for plain objects. This behavior is consistent with the language type 'object' in JavaScript (which includes functions).","severity":"gotcha","affected_versions":"3.x"},{"fix":"Use npm install lodash.isobject (lowercase).","message":"The package name is 'lodash.isobject' (all lowercase), though the documentation may refer to 'isObject'. Installation must use the lowercase name.","severity":"gotcha","affected_versions":"all"},{"fix":"If you need v4 behavior, use 'lodash' package directly.","message":"lodash v4 changed the behavior of many functions. isObject is largely the same but the overall API is different. This package is frozen at v3 behavior.","severity":"breaking","affected_versions":"3.x"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install lodash.isobject' and require exactly 'lodash.isobject' (lowercase).","cause":"The package is not installed or the name is misspelled (e.g., 'lodash.isObject' with capital 'O').","error":"Error: Cannot find module 'lodash.isobject'"},{"fix":"Use require('lodash.isobject') or switch to lodash-es if you need ESM.","cause":"Attempting to use ES module import syntax on a CommonJS-only package.","error":"SyntaxError: Cannot use import statement outside a module"},{"fix":"Use 'const isObject = require('lodash.isobject')' directly.","cause":"Trying to destructure the require result (e.g., const { isObject } = require('lodash.isobject')).","error":"undefined is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}