lodash internal replaceHolders

raw JSON →
3.0.0 verified Sat Apr 25 auth: no javascript deprecated

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.

error Cannot find module 'lodash._replaceholders'
cause Package not installed or removed from npm.
fix
Run npm install lodash._replaceholders@3.0.0 or migrate to lodash v4.
error undefined is not a function
cause Requiring the module without proper version or using ESM import.
fix
Use var replaceHolders = require('lodash._replaceholders'); in a Node.js CJS context.
deprecated 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.
fix Upgrade to lodash v4 and use _.partial or _.partialRight instead.
gotcha Package exports a single function that expects exactly two arguments: array and placeholders. Passing wrong types may cause runtime errors.
fix Ensure array is an array and placeholders is an array of placeholder values.
npm install lodash._replaceholders
yarn add lodash._replaceholders
pnpm add lodash._replaceholders

Shows usage of replaceHolders to mark placeholder positions in an array.

var replaceHolders = require('lodash._replaceholders');
var holders = ['?', 'placeholder'];
var array = ['a', '?', 'b', 'placeholder'];
var result = replaceHolders(array, holders);
console.log(result); // [true, false, true, false]