{"id":18503,"library":"lodash._basecallback","title":"lodash internal baseCallback (v3)","description":"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.","status":"deprecated","version":"3.3.1","language":"javascript","source_language":"en","source_url":"https://github.com/lodash/lodash","tags":["javascript"],"install":[{"cmd":"npm install lodash._basecallback","lang":"bash","label":"npm"},{"cmd":"yarn add lodash._basecallback","lang":"bash","label":"yarn"},{"cmd":"pnpm add lodash._basecallback","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"used internally by baseCallback","package":"lodash._baseisequal","optional":true}],"imports":[{"note":"v3 package is CJS-only; ES import will not work","wrong":"import baseCallback from 'lodash._basecallback';","symbol":"baseCallback","correct":"var baseCallback = require('lodash._basecallback');"}],"quickstart":{"code":"var baseCallback = require('lodash._basecallback');\n// Example usage: iteratee for collection methods\nvar users = [\n  { 'user': 'barney', 'active': true },\n  { 'user': 'fred',   'active': false }\n];\nfunction predicate(user) { return user.active; }\nvar callback = baseCallback(predicate, null, 0);\nvar result = users.filter(callback);\nconsole.log(result); // => [{ 'user': 'barney', 'active': true }]","lang":"javascript","description":"Shows how to import and use baseCallback to create a callback for lodash v3-style iteration."},"warnings":[{"fix":"Use the lodash v4.x public API (e.g., lodash.iteratee or _.iteratee) instead.","message":"This package is internal and frozen at lodash v3.3.1. Do not use in new projects.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use require() directly without destructuring: var baseCallback = require('lodash._basecallback');","message":"The package exports a single function, not an object with methods.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Create a .d.ts file or use lodash v4's @types/lodash.","message":"No TypeScript typings available; using in TypeScript requires manual type declaration.","severity":"gotcha","affected_versions":">=0.0.0"}],"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._basecallback' and ensure package name is correct.","cause":"Package not installed, or typo in package name.","error":"Cannot find module 'lodash._basecallback'"},{"fix":"Use 'var baseCallback = require('lodash._basecallback');'","cause":"Using ES import syntax (import) instead of require().","error":"ReferenceError: baseCallback is not defined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}