lib/hooks.js
function castRecordDateFields(record) {
  _.forEach(record, function (value, key) {
    if(_.isString(value) && iso.test(value)){
      record[key] = new Date(value);
    }
  });
}
function castRecordDateFields(record) {
  _.forEach(record, function (value, key) {
    if(_.isString(value) && iso.test(value)){
      record[key] = new Date(value);
    }
  });
}
function castRecordDateFields ( record ) { _ . forEach ( record , function ( value , key ) { if ( _ . isString ( value ) && iso . test ( value ) ) { record [ key ] = new Date ( value ) ; } } ) ; }
Convert ISO formatted strings on response object into Javascript Date objects.
Used to cast date fields returned from HTTP response into their correct Date type.
@param {Object} record - response record object to process.
Convert ISO formatted strings on response object into Javascript Date objects . Used to cast date fields returned from HTTP response into their correct Date type .