Registry / serialization / lodash._basecallback

lodash._basecallback

JSON →
library3.3.1jsnpmunverified

An internal lodash module exporting the baseCallback function used in lodash v3.x (modern build). This package is part of lodash's modular build system from the v3 era and is not intended for direct public use. The latest version is 3.3.1, which corresponds to lodash v3.3.1. It was superseded by lodash v4's internal restructuring. Unlike the main lodash package, which continues with v4.x, this module is frozen at v3 and receives no further updates. Developers should not depend on it; use lodash's public API instead.

npm install lodash._basecallback
INSTALL
IMPORT
SIG · LODASH._BASECALLBA
L
lodash._basecallback
serializationjavascriptv3.3.1
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.

baseCallback
var baseCallback = require('lodash._basecallback');
import baseCallback from 'lodash._basecallback';
v3 package is CJS-only; ES import will not work

Shows how to import and use baseCallback to create a callback for lodash v3-style iteration.

var baseCallback = require('lodash._basecallback'); // Example usage: iteratee for collection methods var users = [ { 'user': 'barney', 'active': true }, { 'user': 'fred', 'active': false } ]; function predicate(user) { return user.active; } var callback = baseCallback(predicate, null, 0); var result = users.filter(callback); console.log(result); // => [{ 'user': 'barney', 'active': true }]
Debug
Known issues
deprecatedThis package is internal and frozen at lodash v3.3.1. Do not use in new projects.
fix
Use the lodash v4.x public API (e.g., lodash.iteratee or _.iteratee) instead.
affects: >=0.0.0
breakingThe package exports a single function, not an object with methods.
fix
Use require() directly without destructuring: var baseCallback = require('lodash._basecallback');
affects: >=3.0.0
gotchaNo TypeScript typings available; using in TypeScript requires manual type declaration.
fix
Create a .d.ts file or use lodash v4's @types/lodash.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'lodash._basecallback'
Package not installed, or typo in package name.
fix
Run 'npm install lodash._basecallback' and ensure package name is correct.
ReferenceError: baseCallback is not defined
Using ES import syntax (import) instead of require().
fix
Use 'var baseCallback = require('lodash._basecallback');'
Upgrade
Version history
3.3.1latest on npm
Audit
Dependencies
lodash._baseisequaloptionalused internally by baseCallback
Agent activity
2 hits · last 30 days
node
2
Resources
lodash._basecallback — npm install lodash._basecallback · libregistry