@newdash/newdash
Version:
javascript/typescript utility library
11 lines (10 loc) • 338 B
TypeScript
export default countHolders;
/**
* Gets the number of `placeholder` occurrences in `array`.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} placeholder The placeholder to search for.
* @returns {number} Returns the placeholder count.
*/
declare function countHolders(array: any[], placeholder: any): number;