UNPKG

fs-iterator

Version:

A file system iterator with filter and asyncIterator iterafaces. Supports Node 0.10 and above

7 lines (6 loc) 164 B
import FIFO from 'fifo'; export default function lifoFromArray(array) { const fifo = new FIFO(); array.forEach(fifo.unshift.bind(fifo)); return fifo; }