Nodejs NodeList Search find(id)

Here you can find the source of find(id)

Method Source Code

NodeList.prototype.find = HTMLCollection.prototype.find = function(id) {
    for(var i = this.length - 1; i >= 0; i--) {
        if(this[i] && this[i].id === id) {
            return this[i];
        }//from w w w  .j a  v  a 2  s  .  co  m
    }
};