lib/utils/utils.js
function _getIndexesInArray(attrs, attr) {
    var res = [];

    for (var i = 0; i < attrs.length; i++) {
        if (attrs[i].name === attr) res.push(i);
    }

    return res;
}
function _getIndexesInArray(attrs, attr) {
    var res = [];

    for (var i = 0; i < attrs.length; i++) {
        if (attrs[i].name === attr) res.push(i);
    }

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