old_contents: export const range = (start = 0, end = 1, step = 1) => {
      const result = [];
  
      for (let index = start; index < end; index += step) {
          result.push(index);
      }
  
      return result;
  };
  
  export const chunk = (list = [], size = 1) => {
      return list.reduce((res, item, index) => {
          if (index % size === 0) {
              res.push([]);
          }
          res[res.length - 1].push(item);
          return res;
      }, []);
  };
  
  export const compare = (a, b) => {
      if (a > b) {
          return 1;
      }
      if (a < b) {
          return -1;
      }
      return 0;
  };
  
  export const uniqueBy = (array, comparator) => {
      const seen = new Set();
      return array.filter((value) => {
          const computed = comparator(value);
          const hasSeen = seen.has(computed);
          if (!hasSeen) {
              seen.add(computed);
          }
          return !hasSeen;
      });
  };
  
  /**
   * Remove an item from an array.
   * @param {Array} arr
   * @param {Object} item The item to remove
   * @returns {Array} copy of the updated array.
   */
  export const remove = (arr, item) => {
      const i = arr.indexOf(item);
      if (i === -1) {
          return arr;
      }
      const result = arr.slice();
      result.splice(i, 1);
      return result;
  };
  
new_contents: export const range = (start = 0, end = 1, step = 1) => {
      const result = [];
  
      for (let index = start; index < end; index += step) {
          result.push(index);
      }
  
      return result;
  };
  
  export const chunk = (list = [], size = 1) => {
      return list.reduce((res, item, index) => {
          if (index % size === 0) {
              res.push([]);
          }
          res[res.length - 1].push(item);
          return res;
      }, []);
  };
  
  export const compare = (a, b) => {
      if (a > b) {
          return 1;
      }
      if (a < b) {
          return -1;
      }
      return 0;
  };
  
  export const uniqueBy = (array, comparator) => {
      const seen = new Set();
      return array.filter((value) => {
          const computed = comparator(value);
          const hasSeen = seen.has(computed);
          if (!hasSeen) {
              seen.add(computed);
          }
          return !hasSeen;
      });
  };
  
  /**
   * Remove an item from an array.
   * @param {Array} arr
   * @param {Object} item The item to remove
   * @returns {Array} copy of the updated array.
   */
  export const remove = (arr, item) => {
      const i = arr.indexOf(item);
      if (i === -1) {
          return arr;
      }
      const result = arr.slice();
      result.splice(i, 1);
      return result;
  };
  
  /**
   * Returns difference of two array of strings
   * @param {Array} arr1
   * @param {Array} arr2
   * @returns {Array} diff
   */
  export const diff = (arr1, arr2) => arr1.filter((a) => !arr2.includes(a));
  
subject: Add array helper to returns difference of two array of strings