UNPKG

@oozcitak/infra

Version:

An implementation of the Infra Living Standard

18 lines 330 B
/** * Pushes the given item to the stack. * * @param list - a list * @param item - an item */ export function push(list, item) { list.push(item); } /** * Pops and returns an item from the stack. * * @param list - a list */ export function pop(list) { return list.pop() || null; } //# sourceMappingURL=Stack.js.map