|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
405 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Removes `key` and its value from the stack.
|
|---|
| 3 | *
|
|---|
| 4 | * @private
|
|---|
| 5 | * @name delete
|
|---|
| 6 | * @memberOf Stack
|
|---|
| 7 | * @param {string} key The key of the value to remove.
|
|---|
| 8 | * @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|---|
| 9 | */
|
|---|
| 10 | function stackDelete(key) {
|
|---|
| 11 | var data = this.__data__,
|
|---|
| 12 | result = data['delete'](key);
|
|---|
| 13 |
|
|---|
| 14 | this.size = data.size;
|
|---|
| 15 | return result;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | module.exports = stackDelete;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.