(This is what a visitor sees when he finds this array method, it does not describe what will be returned if no value satisfies the testing function)
The find() method returns the value of the first element in the provided array that satisfies the provided testing function.
(This could be what he sees)
The find() method returns the value of the first element in the provided array that satisfies the provided testing function. Otherwise, undefined is returned.
URL(s)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
Request type
Details
(This is what a visitor sees when he finds this array method, it does not describe what will be returned if no value satisfies the testing function)
The find() method returns the value of the first element in the provided array that satisfies the provided testing function.
(This could be what he sees)
The find() method returns the value of the first element in the provided array that satisfies the provided testing function. Otherwise, undefined is returned.
Thanks.