My question
- How to read rom txt file in JS
Best approach to process the data. Something like this below or ????
var data = [ { name: "Orange", type: "Fruit", desc: "some description about the recipe" }, { name: "Spinach", type: "Veg", desc: "some description about the recipe" }, { name: "Beans", type: "Veg", desc: "some description about the recipe" },
]
I want to have an object array so that I can process it further to print out unique names of fruits, just veggies and just fruits.