Check whether all the users in the given list have a credit card.
- Check whether all users in the given list have a credit card.
- The user object will contain name of the user and a key
creditCard
.
- Return
true
if all the users have creditCard
field as true
, false
otherwise.
For example: