Add Element to Array just if It Doesn’t Exist in the Array
Introduction
In JavaScript, arrays allow duplicating elements and don’t guarantee the uniqueness of their elements.
However, in many cases, we need to push an element into an array just if it didn’t exist beforehand and ignore the process if it alrea...
mayallo.hashnode.dev4 min read