We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2efe0dc commit c7cc166Copy full SHA for c7cc166
‎1-js/05-data-types/05-array-methods/article.md‎
@@ -249,6 +249,10 @@ alert( arr.indexOf(0) ); // 1
249
alert( arr.indexOf(false) ); // 2
250
alert( arr.indexOf(null) ); // -1
251
252
+let fruits = ['Plum', 'Apple', 'Orange', 'Plum']
253
+// note that the lastIndexOf method looks for from the end, but index counted from beginning
254
+alert( fruits.lastIndexOf(Plum)) // 3
255
+
256
alert( arr.includes(1) ); // true
257
```
258
0 commit comments