function hydrate(objects, property, getPropertyValue) {
  for (const object of Object.values(objects)) {
    object[property] = getPropertyValue(object);
  }
}
// calls a function to derive the value of a property for every object
calls a function to derive the value of a property for every object
calls a function to derive the value of a property for every object
function hydrate(objects, property, getPropertyValue) {
  for (const object of Object.values(objects)) {
    object[property] = getPropertyValue(object);
  }
}
function hydrate ( objects , property , getPropertyValue ) { for ( const object of Object . values ( objects ) ) { object [ property ] = getPropertyValue ( object ) ; } }
calls a function to derive the value of a property for every object
calls a function to derive the value of a property for every object