January 2020
Intermediate to advanced
470 pages
11h 13m
English
Sometimes, instead of filtering all the elements of an array, you want to find an element that satisfies a given predicate. There are a couple of functions that can be used for this, depending on your specific needs:
The similarity to includes() and indexOf() is clear; these functions search for a specific value instead of an element that satisfies a more general condition. We can easily ...
Read now
Unlock full access