P.S.  Keep in mind that while this example is a functional example, an optimized model might be to incorporate a typed array with the field names then call them in a for...in loop.