averageString function

String averageString(
  1. String s
)

String from average of character codes.

Implementation

String averageString(String s) {
  return String.fromCharCode(listAverage(s.codeUnits).round());
}