Check out example codes for "how to insert element at start of the array ios swift". It will help you in understanding the concepts better.

Code Example 1

someArray.insert(someValue, atIndex: 0)

Learn ReactJs, React Native from akashmittal.com