覚えたこと
nodeListをarrayに変換する
スプレッドオペレーター
[...nodeList]
Array.from(nodeList)
const items = document.querySelectorAll('.item');
const arr = [...items];
const arr2 = Array.from(items);
Go to list of users who liked
More than 1 year has passed since last update.
覚えたこと
nodeListをarrayに変換する
スプレッドオペレーター
[...nodeList]
Array.from(nodeList)
const items = document.querySelectorAll('.item');
const arr = [...items];
const arr2 = Array.from(items);
Register as a new user and use Qiita more conveniently
Go to list of users who liked