interleaveString function

String interleaveString(
  1. String s1,
  2. String s2
)

Join two Strings by taking turns.

Implementation

String interleaveString(String s1, String s2) {
  return String.fromCharCodes(interleaveList(s1.codeUnits, s2.codeUnits));
}