📅  最后修改于: 2022-03-11 15:02:32.555000             🧑  作者: Mango
case 'remove' :
var remove = function(removeID){
var index = array.indexOf(removeID);
if (index>-1) {
array.splice(index, 1);
}
}
remove(args[1]);
break;
//this code removes a specific value the user entered in an array i.e. !remove (the value here)