function sliceWrap(array, start, end) {
  if (array.length === 0) return [];
  const result = [];
  for (let i = start; i < end; i++) {
    result.push(array[i % array.length]);
  }
  return result;
}
export {
  sliceWrap
};
