当前位置:网站首页>[object array A and object array B take out different elements of ID and assign them to the new array]
[object array A and object array B take out different elements of ID and assign them to the new array]
2022-07-05 09:28:00 【Guodong pudding】
An array of objects a And object array b Take out id Assign different elements to the new array
var result = [];
for(var i = 0; i < this.flowLoanForm.alreadyFlowLoanPiao.length; i++){
var obj = this.flowLoanForm.alreadyFlowLoanPiao[i];
var num = obj.id;
var isExist = false;
for(var j = 0; j < list.length; j++){
var aj = list[j];
var n = aj.id;
if(n == num){
isExist = true;
break;
}
}
if(!isExist){
result.push(obj);
}
}
// console.log(result);
this.oldList = result
边栏推荐
- Kotlin introductory notes (II) a brief introduction to kotlin functions
- 一文详解图对比学习(GNN+CL)的一般流程和最新研究趋势
- notepad++
- c语言指针深入理解
- Applet global style configuration window
- Generate confrontation network
- [ManageEngine] how to make good use of the report function of OpManager
- Kotlin introductory notes (VII) data class and singleton class
- 22-07-04 Xi'an Shanghao housing project experience summary (01)
- scipy.misc.imread()
猜你喜欢
LeetCode 31. Next spread
【阅读笔记】图对比学习 GNN+CL
LeetCode 503. Next bigger Element II
Generate confrontation network
AUTOSAR from getting started to mastering 100 lectures (103) -dbc file format and creation details
A keepalived high availability accident made me learn it again
Unity skframework framework (24), avatar controller third person control
顶会论文看图对比学习(GNN+CL)研究趋势
NIPS2021 | 超越GraphCL,GNN+对比学习的节点分类新SOTA
生成对抗网络
随机推荐
[ManageEngine] how to make good use of the report function of OpManager
fs. Path module
Applet (subcontracting)
Applet (use of NPM package)
Introduction Guide to stereo vision (7): stereo matching
顶会论文看图对比学习(GNN+CL)研究趋势
Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]
信息與熵,你想知道的都在這裏了
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
【PyTorch Bug】RuntimeError: Boolean value of Tensor with more than one value is ambiguous
Unity SKFramework框架(二十三)、MiniMap 小地图工具
Applet (global data sharing)
Talking about the difference between unittest and pytest
Analysis of eventbus source code
VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
Kotlin introductory notes (I) kotlin variables and non variables
LeetCode 503. 下一个更大元素 II
C # draw Bezier curve with control points for lattice images and vector graphics
Rebuild my 3D world [open source] [serialization-2]
Node の MongoDB Driver