Message from JavaScript discussions

July 2017

— Specifically, insertTemplate accepts a variable, destElems which can either be a 1-item array like this: [Node] or a NodeList full of Nodes

Message permanent page


var destElems = [document.querySelector(destSel)];

var destElems = document.querySelectorAll(destSel);

— And, then in use:

// Iterate through the destinations for insertion

for (var destElem of destElems.values()) { ...

Message permanent page

— Ultimate root cause of the need is due to NodeList's abstract nature, it requires you to use an iterator because it is a "view" on the DOM which is a graph structure, and does not "contain" any Nodes itself

Message permanent page

— That is what iterators are great for, abstracting complex data structures into an interface presented linearly

Message permanent page

— Send your CV to, I'll forward it :)

— Which region is that,,?

— Well I'm not headhunting or advertising :) please keep in mind :) The company that I work for - EPAM Systems has quite a few offices around the globe, most of them in Europe, couple in China, US. There's one in Mexico too

Message permanent page

— Always wanted to go for few weeks to Mexico.

— Let me see if I can find that link with office locations.

— Https://

— I'm personally in Switzerland right now, but before that lived and worked in China for 3 years :)