src/helpers/findSameInArray.js
function findSameInArray (array, compareIndex) {
  const sliders = [];

  array.forEach((value, index) => {
    if (value === array[compareIndex]) {
      sliders.push(index);
    }
  });

  return sliders;
}
function findSameInArray (array, compareIndex) {
  const sliders = [];

  array.forEach((value, index) => {
    if (value === array[compareIndex]) {
      sliders.push(index);
    }
  });

  return sliders;
}
function findSameInArray ( array , compareIndex ) { const sliders = [ ] ; array . forEach ( ( value , index ) => { if ( value === array [ compareIndex ] ) { sliders . push ( index ) ; } } ) ; return sliders ; }
Returns ids of items with the same value as value of item with 'compareIndex' index
Returns ids of items with the same value as value of item with compareIndex index