Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangenming authored Jan 17, 2025
1 parent 232dc91 commit 61643d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The `findIndex()` method is [generic](/en-US/docs/Web/JavaScript/Reference/Globa

## Examples

### Find the index of a prime number in an array
### Find the index of the first prime number in an array

The following example returns the index of the first element in the array that is a prime number, or `-1` if there is no prime number.

Expand Down

0 comments on commit 61643d4

Please sign in to comment.