https://han7096.medium.com/javascript-splice-%EC%99%80-slice-%EC%9D%98-%EC%B0%A8%EC%9D%B4-72a96ebaf266