code: function pullByIndex(arr, index) {
      if (index < arr.length) {
          const value = arr[index];
          shift(arr, index);
          return value;
      }
  
      return undefined;
  }
docs: removes array item by given index if the index is not over array length returns removed value