https://thecode.media/metod-splice-v-javascript/