📌  相关文章
📜  根据另一个数组应用程序脚本在数组中查找新值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:41.683000             🧑  作者: Mango

代码示例5
const ObjectOfKeys = keys.reduce((acc,rec)=> {
                        let nextAcc = acc;
                        nextAcc[rec] = true;
                        return nextAcc;
                        },{}};

const filteredData = data.filter(rec => !ObjectOfKeys[rec[0]])