📌  相关文章
📜  discord bot javascript 删除数组中的用户数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:32.555000             🧑  作者: Mango

代码示例1
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)