* Remove action with given id from stack * @param {String} id * @returns {Boolean}
(id)
| 108 | * @returns {Boolean} |
| 109 | */ |
| 110 | remove(id) { |
| 111 | for (let i = 0; i < stack.length; ++i) { |
| 112 | let action = stack[i]; |
| 113 | if (action.id === id) { |
| 114 | stack.splice(i, 1); |
| 115 | return true; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | return false; |
| 120 | }, |
| 121 | /** |
| 122 | * Check if action with given id exists in stack |
| 123 | * @param {String} id |
nothing calls this directly
no outgoing calls
no test coverage detected