Skip to content

Instantly share code, notes, and snippets.

@matheus-rossi
Created October 1, 2017 23:25
Show Gist options
  • Save matheus-rossi/db7eea8a9bdf9b0b02be7dd8ff59c51e to your computer and use it in GitHub Desktop.
Save matheus-rossi/db7eea8a9bdf9b0b02be7dd8ff59c51e to your computer and use it in GitHub Desktop.
crawler - model works
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