I'm trying to find a way to distribute 2 arrays equally for example I got
let a = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
let b = [0,0,0,0]
function distrubute(a, b){
//I need help with this function
return ?
}
let distributed = distribute()
console.log(distributed)
// [0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1]
// this one has to be true:
console.log(distributed.length === a.length)