You can “convert” your array of objects into another array of different objects. Lets say your first array contains a list of complex user models but you only care about the username and email properties for a certain action. You could map the array like this.
Or if you had an array of numbers and you wanted to double each item, you could do:
Also published on Medium.