diff options
Diffstat (limited to 'tools/eslint/node_modules/lodash/_hashDelete.js')
-rw-r--r-- | tools/eslint/node_modules/lodash/_hashDelete.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/eslint/node_modules/lodash/_hashDelete.js b/tools/eslint/node_modules/lodash/_hashDelete.js index 45b39fb00d..ea9dabf131 100644 --- a/tools/eslint/node_modules/lodash/_hashDelete.js +++ b/tools/eslint/node_modules/lodash/_hashDelete.js @@ -9,7 +9,9 @@ * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; } module.exports = hashDelete; |