I pass in an array of error messages to parse. An example input would be:
\"An item with this x Id already exists. An item with this y id already exists. An it
Never loop over an array with for...in.
Iterates over the enumerable properties of an object, in arbitrary order.
Why is using "for...in" with array iteration a bad idea?