JSFiddle - React, Tailwind, and code Playground
by ChrisStanyon
JavaScript
js = '["file1.txt", "file2.txt", "file3.txt"]'
JSON.parse(js).forEach((item) => {
console.log(item)
})
//files.push(...JSON.parse(js))
by ChrisStanyon
js = '["file1.txt", "file2.txt", "file3.txt"]'
JSON.parse(js).forEach((item) => {
console.log(item)
})
//files.push(...JSON.parse(js))