Prefilter JSON

If we don't want to render every cat photo we get from our freeCodeCamp Cat Photo JSON API, we can pre-filter the json before we loop through it.

Let's filter out the cat whose "id" key has a value of 1.

Here's the code to do this:

json = json.filter(function(val) {
return ( !== 1);
Get a hint