var array1 = [{
candidateId: 57,
firstName: Sumit,
lastName: Kumar Gupta,
displayName: Sumit1,
locked: false,
photoId: -1,
resumeId: -1,
experience: 6 Months,
email: [email protected],
mobile: +91.8100688592,
prefferedLocation: [
Bangalore
],
currentEmployer: [
],
skills: [{
skillName: JAVA,
level: advanced,
candidateRating: 5,
rating: 0
}],
viewed: true,
nextStates: [{
state: Approach
}]]
var array2 = [image1]
Io sono sempre array2
le immagini da altra richiesta così ho assegnato in array2
. Ora volevo spingere o aggiungere questo array2
in array1
. Così ho creato un oggetto
'image'
array2.push({'image':image1})
e provato spingendo
for(var i=0; i<array1.length;i++){
array1[i].push(array2[i]);
}
ma non ha funzionato.