How to remove duplicate elements, of different data types, from an Array.
Assigning is very common. Sometimes typing becomes time consuming for us ‘Lazy programmers’. So, we can use some tricks to help us and make our code cleaner and simpler.
You may run into problems while implementing asynchronous loops.
Compact one-liners that generate ordinal sequence arrays
An Object it is an unordered collection of properties… that means that if you are trying to save ordered data inside an Object, you have to review it because properties order in objects are not guaranteed.
arguments lets you access all of the arguments passed to the function.
arguments is an array-like object;
arguments can be accessed using array notation, and it has the length property, but it doesn’t have many of the built-in methods that arrays have such as
forEach. Because of this, it is a fairly common practice to convert
arguments into an array using the following snipet