image from javascripttutorial.net

This post will be one of many covering the features of es6 but before going into specifics, we should have a quick background overview of these enhancements in JavaScript. Some of these features are bits to help developers write less code and also features that bring ideas or functionality to the language. It is important to note that these features are not to change JavaScript for the sake of changing instead, we do so to be a bit more expressive in the code we write so, future engineers can have clarity on the codes written. …


The reduce() method executes a reducer function (that you provide) on each element of the array, resulting in single output value. This is a definition provided by MDN. It can be hard to wrap your head around the reduce() method but its also as flexible too.

One thing to note in simple terms is that the reduce() method takes an initial value and this initial value is sent to our iterator function for every run through it. This is where reduce() gets its power from. The some() and every() methods work more towards condensing an array to a single value…


The javaScript method every() and some() work very similarly but in this article, I’ll be writing about the some() array helper. The every() and some() helpers condense a set of data into a single value.

Before we look into the every() method, we try it out with our classic for() loop. So, let’s say we a customer who comes into our store where we sell computers and the customer needs laptops that have a minimum of 4gig RAM. We need to search through our database for computers matching the client’s request. In this case, we need to deliver all our…


The javaScript method some() and every() work very similarly but in this article, I’ll be writing about the some() array helper. The some() and every() helper condense a set of data into a single value.

Before we look into the some() method, we try it out with our classic for() loop. So, let’s say we a customer who comes into our store where we sell computers and the customer needs a laptop that has a minimum of 4gig RAM. We need to search through our database for computers matching the client’s request.

var computers = [
{ name: ‘Apple’, ram…

The find() method is one of the JavaScript array helpers. To put its function simple, it’s to search through an array and look for a particular element or the first of the element that returns a truthy.

It will be best to jump right in and give an example writing a few lines of code. Before doing that, we write what a find() method would look like using a for() loop. I wrote about the for() loop and the forEach() method in previous articles.

To make our example simple, we create an array of users[] consisting of objects with a…


In previous posts, I discussed the forEach() and map() methods which you can easily read about them there. In this article, I will be writing about the filter() helper which is a fantastic and useful helper in javaScript.

You surely would have seen filter() in use on a website you have visited or a mobile app. If you have engaged in online shopping over time, then you must have tried to filter a search to fit the pattern of your needs or what you are in search of. …


The map() method is one of the most widely used helper in day to day front-end development. Since it deals with the collection of data without making changes to an old array or so to put it mutate it. What it does in simple terms is take data from Array A then create its own new data based on the detail it got from Array A and now have its own (new) array.

With that simple explanation, we can then say, the map() method creates a new array populated with the results of calling a provided function on every element…


When writing I tend to make it as simple as it gets or as simple as I get things so a newbie can pick the article if it gets to be seen and understand in simple tense. For loop is a block of code that tends to execute itself repeatedly based on certain set conditions.

Advancement in scripting language brought about the need for how to reduce how code is written. For loop to me has its flaws although we must say it has served developers in times past and still doing a good job.

In passing, I must point…


image from slf newsroom

Often times, if you are like me, when I meet a new concept in tutorials, books, or articles, I try my best to look for one easier to grasp. By grasp, I mean not delving into the “techy” sense of it. I just need something simple I can wrap my head around.

Knowing you need to at least know what JavaScript is to begin to write codes with it is something but what about a nonprogramming folk who just needs something light to take as a knowledge. …

Ayodeji Moses Odukoya

Front-end web developer in love with UI.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store