UNPKG

zip-iterator

Version:

Extract contents from zip archive type using an iterator API using streams or paths. Use stream interface and pipe transforms to add decompression algorithms

10 lines (9 loc) 239 B
export default function fifoRemove(fifo, value) { for(let node = fifo.node; node; node = fifo.next(node)){ if (node.value === value) { fifo.remove(node); return true; } } return false; }