Swap Elements in Array TypeScript

[elements[0], elements[3]] = [elements[3], elements[0]];
Alert Ape