Created
October 1, 2017 23:25
-
-
Save matheus-rossi/db7eea8a9bdf9b0b02be7dd8ff59c51e to your computer and use it in GitHub Desktop.
crawler - model works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const arr = [ | |
'h1', | |
'h2', | |
'h3' | |
] | |
const arr2 = [ | |
'p1', | |
'p2', | |
'p3', | |
] | |
const finalData = [] | |
for (let i=0; i < arr.length; i ++) { | |
let item = {} | |
item['desc'] = arr[i] | |
item['value'] = arr2[i] | |
finalData.push(item) | |
} | |
console.log(finalData) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment