Recent Posts

[JS] Map loop

less than 1 minute read

```js let recipeMap = new Map([ [‘cucumber’, 500], [‘tomatoes’, 350], [‘onion’, 50] ]);

[JS] Map keeping keys

less than 1 minute read

Simple example shows that JS Map keeps the keys compare to an object does not keep the different data type of keys.

[JS] Shallow copy an array

less than 1 minute read

When copying an array with spread operator (…) is a shallow copy. Which means if the array containing an object will be still pointing same object not copyin...