so this doesn't mutate the people array but creates a new one, slicedpeople, with elements from people right?
Yep! Avoiding the mutation in the "people" array :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.