Rate this script:  I Love it  /   I Hate it

using map on an array of elements


Code

document.getElementsByTagName('div').map(function(el) {});Object.extend(String.prototype, {
  tags_in: function(el) {
    nodes = [];
    elems = $(el).getElementsByTagName(this);
    for(var i = 0; i < elems.length; i++)
      nodes.push(elems[i]);
    return nodes;
  }
});'div'.tags_in(document).map(function(el) {});

 

 
using map on an array of elements scripts | using map on an array of elements snippet | using map on an array of elements example | using map on an array of elements tutorial | using map on an array of elements code