The indexOf method in JavaScript arrays is explained
Recently the project encountered a small problem code I will simplify into a small example to show you. The last thing you need to do is to look at it with care, and children with a solid foundation can jump…