src/aria/widgets/frames/FrameWithIcons.js
function (iconsList, iconNames) {
            if (iconNames && iconNames.length > 0) {
                var icons = [];
                ariaUtilsArray.forEach(iconsList, function (item, i) {
                    if (!ariaUtilsArray.contains(iconNames, iconsList[i])) {
                        icons.push(iconsList[i]);
                    }
                });
                return icons;
            }
            return iconsList;
        }
function (iconsList, iconNames) {
            if (iconNames && iconNames.length > 0) {
                var icons = [];
                ariaUtilsArray.forEach(iconsList, function (item, i) {
                    if (!ariaUtilsArray.contains(iconNames, iconsList[i])) {
                        icons.push(iconsList[i]);
                    }
                });
                return icons;
            }
            return iconsList;
        }
function ( iconsList , iconNames ) { if ( iconNames && iconNames . length > 0 ) { var icons = [ ] ; ariaUtilsArray . forEach ( iconsList , function ( item , i ) { if ( ! ariaUtilsArray . contains ( iconNames , iconsList [ i ] ) ) { icons . push ( iconsList [ i ] ) ; } } ) ; return icons ; } return iconsList ; }
Does the filtering of icons
@param {Array} iconsList Icons to be displayed left or right
@param {Array} iconNames Icons to be removed from iconsList
@return {Array}
Does the filtering of icons