mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Bump to v4.12.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(['./_assocDelete'], function(assocDelete) {
|
||||
define([], function() {
|
||||
|
||||
/**
|
||||
* Removes `key` and its value from the stack.
|
||||
@@ -10,10 +10,7 @@ define(['./_assocDelete'], function(assocDelete) {
|
||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
||||
*/
|
||||
function stackDelete(key) {
|
||||
var data = this.__data__,
|
||||
array = data.array;
|
||||
|
||||
return array ? assocDelete(array, key) : data.map['delete'](key);
|
||||
return this.__data__['delete'](key);
|
||||
}
|
||||
|
||||
return stackDelete;
|
||||
|
||||
Reference in New Issue
Block a user