From ad3236a85904ca562a281294fd62ea6e70a2dce2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 12 Mar 2017 23:16:21 -0700 Subject: [PATCH] Remove `countHolders`. --- .internal/countHolders.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .internal/countHolders.js diff --git a/.internal/countHolders.js b/.internal/countHolders.js deleted file mode 100644 index 289c7c64a..000000000 --- a/.internal/countHolders.js +++ /dev/null @@ -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