Find duplicate property values in an Array of Objects in JavaScript

Finding duplicate property values in an Array of Objects in JavaScript is not always that simple if you thought, so let’s dive in! A few days ago I needed to work this out, so I thought let’s write it down, so I could use it later again! Array of Objects Let’s define an example Array … Continue reading “Find duplicate property values in an Array of Objects in JavaScript”

Reading time:

ES6 VAR, LET and CONST explained!

ES6 (ES2015) is one of the buzzwords in JavaScript nowadays. There are a lot of new features in it. Let’s watch the var, let and const! What is a VAR? VAR can be used for anything everywhere The var keyword can be used everywhere. You can put in all kinds of information. Strings, Int, Object, … Continue reading “ES6 VAR, LET and CONST explained!”

Reading time:

JavaScript Basics: Add something to the beginning of an array in JavaScript

How to add something (Object, Array, String, Number) to an Array in JavaScript. Well that is simply done with the `Array.push()` method.

How to add something (Object, Array, String, Number) to an Array in JavaScript. Well that is simply done with the `Array.push()` method.

Reading time:

The JavaScript array.forEach() method doesn’t return anything!

A while ago working on a cool Angular2 project I discovered some weird behavior, weird because I didn’t realise it was working that way. I was checking if an id property of an object, was already in an array. If it was, it won’t push it again. It is wasn’t in there, it could push … Continue reading “The JavaScript array.forEach() method doesn’t return anything!”

Reading time: