Traverse an array and insert other array objects in an orderly manner

Array object crossover, for example
Array 1 [{id:1,"age",23}, {id:2,"age",23}, {id:3,"age",23}, etc.]
Array 2 and Array 1 have the same structure, id is different [{id:6,"age",23}, {id:7,"age",23}, {id:8,"age",23}, {id:9,"age",23}] {id:10,"age",23}, etc.]
two arrays are crossed and merged into a third array [{id:1,"age",23}, {id:6,"age",23}, {id:7,"age",23}, {id:2,"age",23}, {id:8,"age",23}, {id:9,"age",23}] The
rule is similar to the shuffle algorithm [the first object of array one, two objects of array two, the second object of array one, the third four objects of array two];
structure [abbabbabb]

Mar.25,2022

resolved, cyclic assembly array

Menu