Skip to content

Instantly share code, notes, and snippets.

@javahaxxor
javahaxxor / transform.js
Last active September 14, 2017 22:23
Transform column data to objects
function flip() {
var columns = [
{
"name": "address",
"rows": ['arow1', 'arow2', 'arow3', 'arow4', 'arow5']
},
{
"name": "line1",
"rows": ['l1row1', 'l1row2', 'l1row3', 'l1row4', 'l1row5']
},