Remove countHolders.

This commit is contained in:
John-David Dalton
2017-03-12 23:16:21 -07:00
parent 98969648e9
commit ad3236a859

View File

@@ -1,21 +0,0 @@
/**
* 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.
*/
function countHolders(array, placeholder) {
let length = array.length
let result = 0
while (length--) {
if (array[length] === placeholder) {
++result
}
}
return result
}
export default countHolders