Function applyFields

Applies an operation over each field of a rectangle.

// Convert x,y,width,height to integer values
applyFields(v => Number.floor(v), someRect);