Registry / serialization / lodash.isobject

lodash.isobject

JSON →
library3.0.2jsnpmunverified

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.

npm install lodash.isobject
INSTALL
IMPORT
SIG · LODASH.ISOBJECT
L
lodash.isobject
serializationjavascriptv3.0.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

isObject
var isObject = require('lodash.isobject');
import isObject from 'lodash.isobject';
This package is CommonJS-only and does not support ES modules. For ESM, use lodash-es or modern lodash.
isObject
const isObject = require('lodash.isobject');
const { isObject } = require('lodash.isobject');
The package exports the function directly, not as a named export.
isObject
import isObject from 'lodash.isobject'; // fails; use require
import { isObject } from 'lodash.isobject';
This only works if you have an ESM-compatible shim; native ESM is not supported.

Demonstrates using require() to import the module and testing various values with isObject().

var isObject = require('lodash.isobject'); console.log(isObject({})); // true console.log(isObject([1, 2, 3])); // true console.log(isObject(null)); // false console.log(isObject(42)); // false console.log(isObject('string')); // false console.log(isObject(undefined)); // false console.log(isObject(function() {})); // true (functions are objects) console.log(isObject(/regex/)); // true
Debug
Known issues
deprecatedThis package is part of lodash v3 modular builds and is no longer maintained. Use lodash 4.x+ (full) or lodash-es instead.
fix
Replace with lodash 4.x: npm install lodash and use _.isObject.
affects: >=3.0.0
gotchaIn 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).
fix
Use isObjectLike or isPlainObject if you want to exclude functions.
affects: 3.x
gotchaThe package name is 'lodash.isobject' (all lowercase), though the documentation may refer to 'isObject'. Installation must use the lowercase name.
fix
Use npm install lodash.isobject (lowercase).
affects: all
breakinglodash 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.
fix
If you need v4 behavior, use 'lodash' package directly.
affects: 3.x
Errors
Common errors & fixes
Error: Cannot find module 'lodash.isobject'
The package is not installed or the name is misspelled (e.g., 'lodash.isObject' with capital 'O').
fix
Run 'npm install lodash.isobject' and require exactly 'lodash.isobject' (lowercase).
SyntaxError: Cannot use import statement outside a module
Attempting to use ES module import syntax on a CommonJS-only package.
fix
Use require('lodash.isobject') or switch to lodash-es if you need ESM.
undefined is not a function
Trying to destructure the require result (e.g., const { isObject } = require('lodash.isobject')).
fix
Use 'const isObject = require('lodash.isobject')' directly.
Upgrade
Version history
3.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
lodash.isobject — npm install lodash.isobject · libregistry