Last active
May 4, 2022 15:15
-
-
Save bgrins/34f5dce63885d8544dd525d78ade8ec8 to your computer and use it in GitHub Desktop.
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
export function transform(data, options) { | |
console.log(data, options); | |
return data; | |
} |
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
export function transform(data, options) { | |
let todos = []; | |
for (let row of data.split("\r\n")) { | |
let cols = row.split(","); | |
todos.push({ | |
id: cols[2], | |
content: cols[0], | |
due: cols[1], | |
}); | |
} | |
return todos; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment