Aug 27, 2017 · 1 min read
indexOf() compares the passed search parameter to elements of the Array using strict equality (the same method used by the === or triple-equals operator), so it’s not much help when you have a complex array (an array of objects), and that’s where findIndex() can help since it takes a callback as an argument.
