Ramda: get objects from array by comparing with each item in another array

前端 未结 4 1074
-上瘾入骨i
-上瘾入骨i 2021-01-03 13:40

I\'ve an array like:

ids = [1,3,5];

and another array like:

items: [
{id: 1, name: \'a\'}, 
{id: 2, name: \'b\'}, 
{id: 3,          


        
4条回答
提交回复
热议问题