📌
const arr = [1, 2]; console.log(arr[0]); // 1
✏️
dataset을 출력해보면,
item[key]를 풀어서 써보면 item[”color”] = [black, white, etc]가 출력되고,
즉 item[key] 는 color와 type 중에 나뉘고, 또 그 안에서 클릭한 버튼의 value 와 같은 item들만 filter돼서 보여지는 것이다.