You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a method all which takes an array and a predicate (function pointer), and returns true if the predicate returns true for every element in the array.
Otherwise, it should return false. If the array is empty, it should return true, since technically nothing failed the test.