I have a csv file :
name,number,level Mike,b1,0 Tom,b2,0 ..... I want to construct something like:
matrix: { { name: 'Mike', number: 'b1', level: 0 }, { name: 'Tom', number: 'b2', level: 0 }, .... } and I want to be able to extract the properties,for example matrix.name.
My problem is that I want to search later using ejs file by name for example.
matrix = [ { name: 'Mike', number: 'b1', level: 0 }, { name: 'Tom', number: 'b2', level: 0 }, ... ]. You might also consider using the names as a key for the rest of the properties (for examplematrix.Mike = { number: 'b1', level: 0 }).