I would suggest, as you also have inputs which are going to filter the output, to filter the array with Array.filter: developer.mozilla.org/nl/docs/Web/....
If you were to implement something like this, it would look like:
constfilteredUsers=users.filter(user=>user.score>minimumScore)// where minimumScore is 20 in your case
You can also chain the .filter method, so you can put in a filter for all your input fields:
I would suggest, as you also have inputs which are going to filter the output, to filter the array with Array.filter: developer.mozilla.org/nl/docs/Web/....
If you were to implement something like this, it would look like:
You can also chain the
.filter
method, so you can put in a filter for all your input fields:Hope this helps! 😊