message: feat(utility): added minSize parameter, documentation updated
diff: * @example
  * import {sameheight} from '@carbon/ibmdotcom-utilities';
  *
  - * sameheight(ElementArray);
  + * sameheight(ElementArray, 'md');
  *
  - * @param {Array} elemCollection Html objects array
  - */
  -function sameheight(elemCollection) {
  - /**
  - * Internal function made for avoiding adding more eventlisteners
  + * if you want the utility to refresh the sizes as you resize the screen, consideer using a listener:
  + * window.addEventListener('resize', sameheight(ElementArray, 'md'));
  *
  - * @param {Array} elemArr array of elements to be alligned
  + * @param {Array} elemCollection Html objects array
  + * @param {string} minSize Minimum size for the utility to be activated, empty for small,
  + * md for medium, lg for large, xlg for xlarge, max for maximum
  */
  - function setHeight(elemArr) {
  - if (window.innerWidth > 671) {
  +function sameheight(elemCollection, minSize) {
  + const elemArr = Array.prototype.slice.call(elemCollection);
  + let targetWidth;
  + if (minSize) {
  + switch (minSize) {
  + case 'md':
  + targetWidth = 671;
  + break;
  + case 'lg':
  + targetWidth = 1055;
  + break;
  + case 'xlg':
  + targetWidth = 1311;
  + break;
  + case 'max':
  + targetWidth = 1583;
  + break;
  + default:
  + targetWidth = 0;
  + break;
  + }
  + }
  +
  + if (window.innerWidth > targetWidth) {
  let targetHeight = 0;
  elemArr.forEach(elem => {
  elem.offsetHeight > targetHeight
  @@ -38,11 +59,4 @@ function sameheight(elemCollection) {
  }
  }
  - const elemArr = Array.prototype.slice.call(elemCollection);
  - setHeight(elemArr);
  - window.addEventListener('resize', function() {
  - setHeight(elemArr);
  - });
  -}
  -
  export default sameheight;
  