N
N
nutritsio2017-09-13 21:09:28
JavaScript
nutritsio, 2017-09-13 21:09:28

How to filter an array with Angular 2, 4 objects?

2ecbc40925424255ba215ac95be8c97b.png1e249881988d49d0b43f227a8f727d12.png
Help me write a function that filters the first element in each of the "type"
objects from the json file and returns the second element of the object as an array with other objects, it will get the lines under the "title" variable (see the .json file).
I called this function getFilesbyType(type: string) , and I can't finish it.
Please help!
Thanks in advance!
ps json bullet via getItemsOfFiles(): Observable

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question