filmov
tv
JavaScript Arrays: Search: Includes Method & IndexOf Method

Показать описание
In this video we are going to learn JavaScript Array methods called as includes and indexOf, the includes() method determines whether an array includes a certain value among its entries, returning true or false as appropriate. The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present.