projen
Version:
CDK for software projects
14 lines (13 loc) • 300 B
TypeScript
/**
* Pushes the given item to the stack.
*
* @param list - a list
* @param item - an item
*/
export declare function push<T>(list: Array<T>, item: T): void;
/**
* Pops and returns an item from the stack.
*
* @param list - a list
*/
export declare function pop<T>(list: Array<T>): T | null;