How would one go about cloning an object that has arrays in it with the new spread operator?
Example Object:
vehicles: {
cars: [1, 2],
boats: [3, 4]
}
I want a new object with the arrays in it. In that new object I want to be able to change or add to an array without it referencing and effecting vehicles object.