{"id":18507,"library":"lodash._replaceholders","title":"lodash internal replaceHolders","description":"This package is the internal `replaceHolders` function extracted from lodash v3.0.0 (modern build). It exists only for legacy lodash internal dependency chaining and is not intended for direct public use. The function replaces placeholder objects (e.g., lodash's `_`) in arrays for partial application. This package is deprecated in favor of lodash v4+ where internal modules are removed.","status":"deprecated","version":"3.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/lodash/lodash","tags":["javascript"],"install":[{"cmd":"npm install lodash._replaceholders","lang":"bash","label":"npm"},{"cmd":"yarn add lodash._replaceholders","lang":"bash","label":"yarn"},{"cmd":"pnpm add lodash._replaceholders","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is CJS only; no ESM support. This is an internal lodash utility not part of the public API.","wrong":"import replaceHolders from 'lodash._replaceholders';","symbol":"replaceHolders","correct":"var replaceHolders = require('lodash._replaceholders');"}],"quickstart":{"code":"var replaceHolders = require('lodash._replaceholders');\nvar holders = ['?', 'placeholder'];\nvar array = ['a', '?', 'b', 'placeholder'];\nvar result = replaceHolders(array, holders);\nconsole.log(result); // [true, false, true, false]","lang":"javascript","description":"Shows usage of replaceHolders to mark placeholder positions in an array."},"warnings":[{"fix":"Upgrade to lodash v4 and use _.partial or _.partialRight instead.","message":"lodash._replaceholders is an internal lodash v3 utility and not intended for public use. Use lodash's public API or implement your own placeholder replacement.","severity":"deprecated","affected_versions":">=3.0.0 <4.0.0"},{"fix":"Ensure array is an array and placeholders is an array of placeholder values.","message":"Package exports a single function that expects exactly two arguments: array and placeholders. Passing wrong types may cause runtime errors.","severity":"gotcha","affected_versions":">=3.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._replaceholders@3.0.0` or migrate to lodash v4.","cause":"Package not installed or removed from npm.","error":"Cannot find module 'lodash._replaceholders'"},{"fix":"Use `var replaceHolders = require('lodash._replaceholders');` in a Node.js CJS context.","cause":"Requiring the module without proper version or using ESM import.","error":"undefined is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}