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]
Ich erhalte array2
Bilder von anderen Anfrage ich in zugewiesen array2
. Nun wollte ich schieben oder diese hinzufügen array2
in array1
. Also habe ich ein Objekt
'image'
array2.push({'image':image1})
und versuchte, drängen
for(var i=0; i<array1.length;i++){
array1[i].push(array2[i]);
}
aber es hat nicht funktioniert.