code: function _getIndexesInArray(attrs, attr) {
      var res = [];
  
      for (var i = 0; i < attrs.length; i++) {
          if (attrs[i].name === attr) res.push(i);
      }
  
      return res;
  }
docs: Gets the attribute's indexes in the array of the attributes
  @param {Array} attrs
  @param {String} attr
  @returns {Array}