(array, predicate)
| 205 | |
| 206 | // removes elements from the array, for which predicate is true |
| 207 | export function removeElementIf(array, predicate) { |
| 208 | for (let i = array.length; i >= 0; i--) { |
| 209 | const arrayElement = array[i]; |
| 210 | if (predicate(arrayElement)) { |
| 211 | array.splice(i, 1); |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | export function removeElements(array, elements) { |
| 217 | for (var i = 0; i < elements.length; i++) { |
nothing calls this directly
no outgoing calls
no test coverage detected