覚えたこと
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 3 years have 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