Using the 'some' and 'every' methods on JavaScript arrays

Exercise on Coming soon

Tutorial description

Modern javascript has some neat ways to check if your array contains certain types of values or not. In this tech tip, we show you with one simple line of code how the ‘some’ and ‘every’ method, can be used to apply predicates onto items in your array. No need for long loops if you only have to check whether something is true or false for one or all items in your array.

At Hackages, our aim is to connect with our tech community and build educational training sessions to develop your skills as a software engineer. We have an in-house web development team available for consultancy to get your company the IT development it needs! Contact us below!