DEV Community

Discussion on: Find and Replace elements in Array with JavaScript

Collapse
 
sumerokr profile image
Aleksandr Sadykov • Edited

Array.find will not return a Boolean value in your examples. Instead the value itself will be returned. Or the undefined, if there is no match.

Collapse
 
albertomontalesi profile image
AlbertoM

You are perfectly right, i've updated the text