Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //use spread operator to get array from node list of h1 elements
- [...h1Elements] // can now use array methods like forEach
- Array.prototype.forEach.apply(h1Elements, function(h1Element) {...
Add Comment
Please, Sign In to add comment