@newdash/newdash
Version:
javascript/typescript utility library
12 lines (11 loc) • 412 B
TypeScript
export default replaceHolders;
/**
* Replaces all `placeholder` elements in `array` with an internal placeholder
* and returns an array of their indexes.
*
* @private
* @param {Array} array The array to modify.
* @param {*} placeholder The placeholder to replace.
* @returns {Array} Returns the new array of placeholder indexes.
*/
declare function replaceHolders(array: any[], placeholder: any): any[];