How to sort an array of objects using another array for reference? REACT-NATIVE

后端 未结 0 1569
后悔当初
后悔当初 2021-01-05 01:14

i want to sort an array of objects having id each object using another array that only has the ids, for example:

object = [
 {id: 2, name: carlos},
 {id: 1, n         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题