I have 2 sets of arrays with the exact same length :
var set1= ["apple", "banana", "orange", "mango", "grape", "kiwi", "pear", "papaya"]
var set2 = ["junglebook", "narnia", "harrypotter", "lordoftherings", "aliceinwonderland", "peterpan", "sherlockholmes", "wizardofoz"]
The desired output would be :
result = [{item:apple,story:junglebook},{item:banana,story:narnia},{item:orange,story:harrypotter},{item:mango,story:lordoftherings},{item:grape,story:aliceinwonderland},{item:kiwi,story:peterpan},{item:pear,story:sherlockholmes},{item:papaya,story:wizardofoz}]
Can anyone assist me with this task?