Answers for "Make an array from the HTML Collection to make it iterable"

0

Make an array from the HTML Collection to make it iterable

//make an array from the HTML Collection to make it iterable
                            Array.from(books).forEach(function (book) {
                                const title = book.textContent;
                                if (title.toLowerCase().indexOf(term) != -1) {
                                    book.style.display = 'block';
                                } else { book.style.display = 'none'; }
                            })
Posted by: Guest on March-18-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language