Update example to check for numbers in names array

Fix incorrect example of Array.some() in line 483
pull/1027/head
santiagotf 1 week ago committed by GitHub
parent e067490424
commit 6a61c0d062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -480,8 +480,8 @@ console.log(areSomeTrue) //true
```
```js
const areAllStr = names.some((name) => typeof name === 'number') // Are all strings ?
console.log(areAllStr) // false
const isThereANumber = names.some((name) => typeof name === 'number') // Is there a number ?
console.log(isThereANumber) // false
```
### sort

Loading…
Cancel
Save