filmov
tv
the difference in using the find or filter methods #javascript #coding

Показать описание
#coding #javascript #tutorial #shorts #asmr
find(): returns only the FIRST element of an array that passes a test. Undefined will be returned when none of the elements pass the test.
filter(): returns a new array with ALL of the elements that pass a test.
Please review the MDN docs on the filter() and find() methods for additional information.
find(): returns only the FIRST element of an array that passes a test. Undefined will be returned when none of the elements pass the test.
filter(): returns a new array with ALL of the elements that pass a test.
Please review the MDN docs on the filter() and find() methods for additional information.