https://tutorial.eyehunts.com/js/javascript-copy-array-without-reference-example-code/
JavaScript copy array without reference | Example code