UNPKG

@oozcitak/infra

Version:

An implementation of the Infra Living Standard

18 lines 343 B
/** * Appends the given item to the queue. * * @param list - a list * @param item - an item */ export function enqueue(list, item) { list.push(item); } /** * Removes and returns an item from the queue. * * @param list - a list */ export function dequeue(list) { return list.shift() || null; } //# sourceMappingURL=Queue.js.map