Js scheduling problem

Array object a =

Array object a =

.

Array object a =

.

Array object a =

Array object:

Array object a =

Array object a = [

]

Array b = [a

>

the problem uses b as the sorting object to change the order of all the objects in the an array to
a = [{aVlv 1je bjr 2pr 2pr 3jd 4}, {av 1m 2m 2m d rep 4}, {a 1L L L 2e d JV 3jd 4}]

, the order of an array of objects is changed to a =

.
Mar.22,2022

let a=[{a:1,b:2,d:4,c:3},{b:2,a:1,c:3,d:4},{d:4,b:2,a:1,c:3}],
    b=['a','b','c','d']
a.map(obj=>{
  let o={}
  b.forEach(key=>o[key]=obj[key])
  return o
})
Menu