Recent Posts

[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...

[JS] Save HTML as a file

less than 1 minute read

This is a sample code to save the HTML document as a file programmtically which you can use “save” function to be used somewhere such as a special event.