- Joined
- May 3, 2012
- Messages
- 954
- Reaction score
- 520
- First Language
- Javascript
- Primarily Uses
- RMMZ
Another one for ya guys... kind of has me stumped...
Shifting only select elements of array while keeping the rest of the array as is though.
Example:
How would I shift only the numbers while keeping the rest of the array as is.
So the first shift should end up like this:
Second shift like this:
Thanks again for any/all help advice. 
Shifting only select elements of array while keeping the rest of the array as is though.
Example:
Code:
const a = ["A", 4, "B", "C", "D", 1, 2, 3];
So the first shift should end up like this:
Code:
["A", 3, "B", "C", "D", 4, 1, 2]
Code:
["A", 2, "B", "C", "D", 3, 4, 1]
