What does mean the index "[0]" in the end of the filter function or in any kind of function that It is added? For example let's say that I am importing a JSON data from a file, so I added this code
<Home dish={this.state.dishes.filter((dish) => dish.featured)[0]} />
As you can see It has added the [0] in the end, what does it mean? It is used for what? If it is something that could be added in many functions, and not just in the filter function, for what is used then?