I used ChatGPT to help me create this prototype extension on an array object in javascript. This is what I typed into the chat: "javascript, group numbers based on if they are adjacent to one another, use foreach"