Skip to content

Instantly share code, notes, and snippets.

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