Created
September 15, 2022 07:51
-
-
Save devbyray/3e9f85a2f67ac62312d189f3dd00c140 to your computer and use it in GitHub Desktop.
This file contains 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
function csvToArr(stringValue) { | |
// Add logic | |
const [keys, ...rest] = stringValue.trim().split('\n'); | |
console.log('CSV keys: ', keys); | |
console.log('CSV values: ', rest); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment