Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
`Array.prototype.some` performs full iteration only in the case the last item returns truthy and when all return falsy. So, it is more accurate to relate to each **traversed** item than each item in the array.
  • Loading branch information
anewman15 authored Feb 3, 2024
1 parent c0e4742 commit 3671217
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ some(callbackFn, thisArg)
### Parameters

- `callbackFn`
- : A function to execute for each element in the array. It should return a [truthy](/en-US/docs/Glossary/Truthy) value to indicate the element passes the test, and a [falsy](/en-US/docs/Glossary/Falsy) value otherwise. The function is called with the following arguments:
- : A function to execute for each traversed element in the array. It should return a [truthy](/en-US/docs/Glossary/Truthy) value to indicate the element passes the test, and a [falsy](/en-US/docs/Glossary/Falsy) value otherwise. The function is called with the following arguments:
- `element`
- : The current element being processed in the array.
- `index`
Expand Down

0 comments on commit 3671217

Please sign in to comment.