Hacker News new | ask | show | jobs
by bmn__ 3249 days ago
includes is the same as indexof, what's the big deal in your opinion?
1 comments

Index of element is greater than minus one is an odd way of thinking about whether an array contains an element.