I get removeItem out of range when I run this code, which is creating a stack overflow how can i solve this problem please
const list = new Array(60000).join('1.1').split('.');
function removeItemsFromList() {
var item = list.pop();
if (item) {
removeItemsFromList();
}
};
removeItemsFromList();