Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (5 sloc) 133 Bytes
export function pop<T>(array: T[]) {
const value = array[array.length - 1];
array.length = array.length - 1;
return value;
You can’t perform that action at this time.