|
|
@ -303,11 +303,11 @@ console.log(scoresGreaterEight) //[{name: 'Asabeneh', score: 95}, {name: 'Martha
|
|
|
|
```js
|
|
|
|
```js
|
|
|
|
const names = ['Asabeneh', 'Mathias', 'Elias', 'Brook']
|
|
|
|
const names = ['Asabeneh', 'Mathias', 'Elias', 'Brook']
|
|
|
|
const areAllStr = names.every((name) => typeof name ==='string');
|
|
|
|
const areAllStr = names.every((name) => typeof name ==='string');
|
|
|
|
console.log(arrAllStr) // true;
|
|
|
|
console.log(areAllStr) // true;
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
```js
|
|
|
|
const areAllTrue = [true, true, true, true]
|
|
|
|
const bools = [true, true, true, true]
|
|
|
|
const areAllTrue = bools.every((b)=> {
|
|
|
|
const areAllTrue = bools.every((b)=> {
|
|
|
|
return b === true;
|
|
|
|
return b === true;
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -581,4 +581,4 @@ console.log(users); // sorted ascending
|
|
|
|
|
|
|
|
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
|
|
|
|
|
|
|
|
[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#)
|
|
|
|
[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#)
|
|
|
|